From e84db77a2caccbaf4513bf671d9530dc73a4b725 Mon Sep 17 00:00:00 2001 From: Adam- Date: Sun, 11 Apr 2010 20:09:06 +0000 Subject: 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 --- include/services.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'include') 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() { } +}; /*************************************************************************/ -- cgit