Mercurial > hg > orthanc
comparison Plugins/Engine/PluginsEnumerations.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 | eb8fbcf008b5 |
children | 1558b3226b18 |
comparison
equal
deleted
inserted
replaced
1642:0669d05b6de1 | 1643:87c77b9b3679 |
---|---|
142 return ErrorCode_Unauthorized; | 142 return ErrorCode_Unauthorized; |
143 | 143 |
144 case OrthancPluginErrorCode_BadFont: | 144 case OrthancPluginErrorCode_BadFont: |
145 return ErrorCode_BadFont; | 145 return ErrorCode_BadFont; |
146 | 146 |
147 case OrthancPluginErrorCode_DatabasePlugin: | |
148 return ErrorCode_DatabasePlugin; | |
149 | |
150 case OrthancPluginErrorCode_StorageAreaPlugin: | |
151 return ErrorCode_StorageAreaPlugin; | |
152 | |
147 case OrthancPluginErrorCode_SQLiteNotOpened: | 153 case OrthancPluginErrorCode_SQLiteNotOpened: |
148 return ErrorCode_SQLiteNotOpened; | 154 return ErrorCode_SQLiteNotOpened; |
149 | 155 |
150 case OrthancPluginErrorCode_SQLiteAlreadyOpened: | 156 case OrthancPluginErrorCode_SQLiteAlreadyOpened: |
151 return ErrorCode_SQLiteAlreadyOpened; | 157 return ErrorCode_SQLiteAlreadyOpened; |
304 return ErrorCode_StorageAreaAlreadyRegistered; | 310 return ErrorCode_StorageAreaAlreadyRegistered; |
305 | 311 |
306 case OrthancPluginErrorCode_DatabaseBackendAlreadyRegistered: | 312 case OrthancPluginErrorCode_DatabaseBackendAlreadyRegistered: |
307 return ErrorCode_DatabaseBackendAlreadyRegistered; | 313 return ErrorCode_DatabaseBackendAlreadyRegistered; |
308 | 314 |
309 case OrthancPluginErrorCode_DatabasePlugin: | 315 case OrthancPluginErrorCode_DatabaseNotInitialized: |
310 return ErrorCode_DatabasePlugin; | 316 return ErrorCode_DatabaseNotInitialized; |
311 | 317 |
312 default: | 318 default: |
313 return ErrorCode_Plugin; | 319 return ErrorCode_Plugin; |
314 } | 320 } |
315 } | 321 } |