Mercurial > hg > orthanc
comparison Core/Enumerations.h @ 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 | 939b921b2c81 |
comparison
equal
deleted
inserted
replaced
1642:0669d05b6de1 | 1643:87c77b9b3679 |
---|---|
75 ErrorCode_UnknownPluginService = 26 /*!< Plugin invoking an unknown service */, | 75 ErrorCode_UnknownPluginService = 26 /*!< Plugin invoking an unknown service */, |
76 ErrorCode_UnknownDicomTag = 27 /*!< Unknown DICOM tag */, | 76 ErrorCode_UnknownDicomTag = 27 /*!< Unknown DICOM tag */, |
77 ErrorCode_BadJson = 28 /*!< Cannot parse a JSON document */, | 77 ErrorCode_BadJson = 28 /*!< Cannot parse a JSON document */, |
78 ErrorCode_Unauthorized = 29 /*!< Bad credentials were provided to an HTTP request */, | 78 ErrorCode_Unauthorized = 29 /*!< Bad credentials were provided to an HTTP request */, |
79 ErrorCode_BadFont = 30 /*!< Badly formatted font file */, | 79 ErrorCode_BadFont = 30 /*!< Badly formatted font file */, |
80 ErrorCode_DatabasePlugin = 31 /*!< The plugin implementing a custom database back-end does not fulfill the proper interface */, | |
81 ErrorCode_StorageAreaPlugin = 32 /*!< Error in the plugin implementing a custom storage area */, | |
80 ErrorCode_SQLiteNotOpened = 1000 /*!< SQLite: The database is not opened */, | 82 ErrorCode_SQLiteNotOpened = 1000 /*!< SQLite: The database is not opened */, |
81 ErrorCode_SQLiteAlreadyOpened = 1001 /*!< SQLite: Connection is already open */, | 83 ErrorCode_SQLiteAlreadyOpened = 1001 /*!< SQLite: Connection is already open */, |
82 ErrorCode_SQLiteCannotOpen = 1002 /*!< SQLite: Unable to open the database */, | 84 ErrorCode_SQLiteCannotOpen = 1002 /*!< SQLite: Unable to open the database */, |
83 ErrorCode_SQLiteStatementAlreadyUsed = 1003 /*!< SQLite: This cached statement is already being referred to */, | 85 ErrorCode_SQLiteStatementAlreadyUsed = 1003 /*!< SQLite: This cached statement is already being referred to */, |
84 ErrorCode_SQLiteExecute = 1004 /*!< SQLite: Cannot execute a command */, | 86 ErrorCode_SQLiteExecute = 1004 /*!< SQLite: Cannot execute a command */, |
129 ErrorCode_LuaBadOutput = 2033 /*!< The Lua function does not give the expected number of outputs */, | 131 ErrorCode_LuaBadOutput = 2033 /*!< The Lua function does not give the expected number of outputs */, |
130 ErrorCode_NotLuaPredicate = 2034 /*!< The Lua function is not a predicate (only true/false outputs allowed) */, | 132 ErrorCode_NotLuaPredicate = 2034 /*!< The Lua function is not a predicate (only true/false outputs allowed) */, |
131 ErrorCode_LuaReturnsNoString = 2035 /*!< The Lua function does not return a string */, | 133 ErrorCode_LuaReturnsNoString = 2035 /*!< The Lua function does not return a string */, |
132 ErrorCode_StorageAreaAlreadyRegistered = 2036 /*!< Another plugin has already registered a custom storage area */, | 134 ErrorCode_StorageAreaAlreadyRegistered = 2036 /*!< Another plugin has already registered a custom storage area */, |
133 ErrorCode_DatabaseBackendAlreadyRegistered = 2037 /*!< Another plugin has already registered a custom database back-end */, | 135 ErrorCode_DatabaseBackendAlreadyRegistered = 2037 /*!< Another plugin has already registered a custom database back-end */, |
134 ErrorCode_DatabasePlugin = 2038 /*!< The plugin implementing a custom database back-end does not fulfill the proper interface */ | 136 ErrorCode_DatabaseNotInitialized = 2038 /*!< Plugin trying to call the database during its initialization */ |
135 }; | 137 }; |
136 | 138 |
137 enum LogLevel | 139 enum LogLevel |
138 { | 140 { |
139 LogLevel_Error, | 141 LogLevel_Error, |