Mailinglist Archive: zypp-commit (731 mails)

< Previous Next >
[zypp-commit] r6550 - in /trunk/libzypp/zypp: RepoManager.cc RepoManager.h
  • From: jkupec@xxxxxxxxxxxxxxxx
  • Date: Thu, 09 Aug 2007 13:04:06 -0000
  • Message-id: <20070809130406.B670FCE0DB@xxxxxxxxxxxxxxxx>
Author: jkupec
Date: Thu Aug  9 15:04:06 2007
New Revision: 6550

URL: http://svn.opensuse.org/viewcvs/zypp?rev=6550&view=rev
Log:
- fixed some addRepository exceptions and docs, more to come

Modified:
    trunk/libzypp/zypp/RepoManager.cc
    trunk/libzypp/zypp/RepoManager.h

Modified: trunk/libzypp/zypp/RepoManager.cc
URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/zypp/RepoManager.cc?rev=6550&r1=6549&r2=6550&view=diff
==============================================================================
--- trunk/libzypp/zypp/RepoManager.cc (original)
+++ trunk/libzypp/zypp/RepoManager.cc Thu Aug  9 15:04:06 2007
@@ -600,13 +600,19 @@
     }
     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;
   }
 

Modified: trunk/libzypp/zypp/RepoManager.h
URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/zypp/RepoManager.h?rev=6550&r1=6549&r2=6550&view=diff
==============================================================================
--- trunk/libzypp/zypp/RepoManager.h (original)
+++ trunk/libzypp/zypp/RepoManager.h Thu Aug  9 15:04:06 2007
@@ -221,11 +221,9 @@
     * 
     *
     * \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,

--
To unsubscribe, e-mail: zypp-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: zypp-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages