diff options
author | Adam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2010-04-11 20:09:06 +0000 |
---|---|---|
committer | Adam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2010-04-11 20:09:06 +0000 |
commit | e84db77a2caccbaf4513bf671d9530dc73a4b725 (patch) | |
tree | 2e17b1b98c5686499c5f0e15b192a60e5449b350 /include | |
parent | 34f10d78fced8ddd5300b631d1fd0760fcbd7aa1 (diff) |
Correctly identify a user when they get autoidentified and made db_plain not crash if it gets a founderless channel
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2888 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'include')
-rw-r--r-- | include/services.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/services.h b/include/services.h index 4acd9928c..2807c49c8 100644 --- a/include/services.h +++ b/include/services.h @@ -272,6 +272,19 @@ class ModuleException : public CoreException virtual ~ModuleException() throw() {} }; +class DatabaseException : public CoreException +{ + public: + /** This constructor can be used to specify an error message before throwing. + * @param mmessage The exception + */ + DatabaseException(const std::string &message) : CoreException(message, "A database module") { } + + /** Destructor + * @throws Nothing + */ + virtual ~DatabaseException() throw() { } +}; /*************************************************************************/ |