aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-04-06 14:16:49 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-04-06 14:16:49 +0000
commitf37ae04479cbc76f8d1ee5f93e6a91853762bae0 (patch)
treedc78e76ac4483ff811dde59b820f11460be480e2
parentc8ad7895d290a59432e74f60b6f7d3f2f2ac3760 (diff)
downloadpaludis-f37ae04479cbc76f8d1ee5f93e6a91853762bae0.tar.gz
paludis-f37ae04479cbc76f8d1ee5f93e6a91853762bae0.tar.xz
Tinker with the exception heirarchy
-rw-r--r--paludis/syncer.cc2
-rw-r--r--paludis/syncer.hh17
2 files changed, 11 insertions, 8 deletions
diff --git a/paludis/syncer.cc b/paludis/syncer.cc
index 28436e8..9c9467c 100644
--- a/paludis/syncer.cc
+++ b/paludis/syncer.cc
@@ -21,7 +21,7 @@
#include <paludis/util/system.hh>
NoSuchSyncerError::NoSuchSyncerError(const std::string & format) throw () :
- ConfigurationError("No such syncer for format '" + format + "'")
+ SyncFailedError("No such syncer for format '" + format + "'")
{
}
diff --git a/paludis/syncer.hh b/paludis/syncer.hh
index 4f4ef90..33e5f6d 100644
--- a/paludis/syncer.hh
+++ b/paludis/syncer.hh
@@ -47,32 +47,35 @@ namespace paludis
};
/**
- * Thrown if a syncer of the specified type does not exist.
+ * Thrown if a sync fails.
*
* \ingroup Exception
*/
- class NoSuchSyncerError : public ConfigurationError
+ class SyncFailedError :
+ public PackageActionError
{
+ protected:
+ SyncFailedError(const std::string & msg) throw ();
+
public:
/**
* Constructor.
*/
- NoSuchSyncerError(const std::string & format) throw ();
+ SyncFailedError(const std::string & local, const std::string & remote) throw ();
};
/**
- * Thrown if a sync fails.
+ * Thrown if a syncer of the specified type does not exist.
*
* \ingroup Exception
*/
- class SyncFailedError :
- public PackageActionError
+ class NoSuchSyncerError : public SyncFailedError
{
public:
/**
* Constructor.
*/
- SyncFailedError(const std::string & local, const std::string & remote) throw ();
+ NoSuchSyncerError(const std::string & format) throw ();
};