}
catch ( const media::MediaException &e )
{
- ZYPP_THROW(RepoException("Error trying to read from " + url.asString()));
+ ZYPP_CAUGHT(e);
+ RepoException enew("Error trying to read from " + url.asString());
+ enew.remember(e);
+ ZYPP_THROW(enew);
}
catch ( const Exception &e )
{
- ZYPP_THROW(Exception("Unknown error reading from " + url.asString()));
+ ZYPP_CAUGHT(e);
+ Exception enew("Unknown error reading from " + url.asString());
+ enew.remember(e);
+ ZYPP_THROW(enew);
}
-
+
return repo::RepoType::NONE;
}
*
*
* \throws repo::RepoAlreadyExistsException If the repo clash some
- * unique attribute like alias
- * \throws MediaException If the access to the url fails
- * \throws ParseException If the file parsing fails
+ * unique attribute like alias
* \throws RepoUnknownType If repository type can't be determined
- * \throws RepoException ON other repository related errors
+ * \throws RepoException If the access to the url fails (while probing).
* \throws Exception On other errors.
*/
void addRepository( const RepoInfo &info,