Mercurial > hg > orthanc
diff Core/Enumerations.cpp @ 1643:87c77b9b3679
provision for error codes in plugins
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 23 Sep 2015 14:42:20 +0200 |
parents | ffd23c0104af |
children | 2e692c83e2f3 |
line wrap: on
line diff
--- a/Core/Enumerations.cpp Wed Sep 23 13:39:00 2015 +0200 +++ b/Core/Enumerations.cpp Wed Sep 23 14:42:20 2015 +0200 @@ -142,6 +142,12 @@ case ErrorCode_BadFont: return "Badly formatted font file"; + case ErrorCode_DatabasePlugin: + return "The plugin implementing a custom database back-end does not fulfill the proper interface"; + + case ErrorCode_StorageAreaPlugin: + return "Error in the plugin implementing a custom storage area"; + case ErrorCode_SQLiteNotOpened: return "SQLite: The database is not opened"; @@ -304,8 +310,8 @@ case ErrorCode_DatabaseBackendAlreadyRegistered: return "Another plugin has already registered a custom database back-end"; - case ErrorCode_DatabasePlugin: - return "The plugin implementing a custom database back-end does not fulfill the proper interface"; + case ErrorCode_DatabaseNotInitialized: + return "Plugin trying to call the database during its initialization"; default: return "Unknown error code";