From: Jan Kupec Date: Thu, 9 Aug 2007 13:04:06 +0000 (+0000) Subject: - fixed some addRepository exceptions and docs, more to come X-Git-Tag: BASE-SuSE-Linux-10_3-Branch~332 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6c98ee8702b5cbce0b9cc814f1eded7d7f3bc742;p=platform%2Fupstream%2Flibzypp.git - fixed some addRepository exceptions and docs, more to come --- diff --git a/zypp/RepoManager.cc b/zypp/RepoManager.cc index 4b4000d..8721588 100644 --- a/zypp/RepoManager.cc +++ b/zypp/RepoManager.cc @@ -600,13 +600,19 @@ namespace zypp } 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; } diff --git a/zypp/RepoManager.h b/zypp/RepoManager.h index d93bb67..34ca876 100644 --- a/zypp/RepoManager.h +++ b/zypp/RepoManager.h @@ -221,11 +221,9 @@ namespace zypp * * * \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,