diff options
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() { } +}; /*************************************************************************/ |
