- fixed some addRepository exceptions and docs, more to come
authorJan Kupec <jkupec@suse.cz>
Thu, 9 Aug 2007 13:04:06 +0000 (13:04 +0000)
committerJan Kupec <jkupec@suse.cz>
Thu, 9 Aug 2007 13:04:06 +0000 (13:04 +0000)
zypp/RepoManager.cc
zypp/RepoManager.h

index 4b4000d..8721588 100644 (file)
@@ -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;
   }
 
index d93bb67..34ca876 100644 (file)
@@ -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,