comparison OrthancFramework/Sources/SQLite/OrthancSQLiteException.h @ 4932:b7ce2bb6b881 more-tags

refactored the list of MainDicomTags to be able to change it dynamicaly. Unit tests and Integration tests ok
author Alain Mazy <am@osimis.io>
date Wed, 09 Mar 2022 11:17:08 +0100
parents 43e613a7756b
children 0ea402b4d901
comparison
equal deleted inserted replaced
4930:1ce32c1ec4cf 4932:b7ce2bb6b881
50 50
51 namespace Orthanc 51 namespace Orthanc
52 { 52 {
53 namespace SQLite 53 namespace SQLite
54 { 54 {
55 // Auto-generated by "Resources/GenerateErrorCodes.py" 55 // Auto-generated by "Resources/CodeGeneration/GenerateErrorCodes.py"
56 enum ErrorCode 56 enum ErrorCode
57 { 57 {
58 ErrorCode_ParameterOutOfRange, 58 ErrorCode_ParameterOutOfRange,
59 ErrorCode_BadParameterType, 59 ErrorCode_BadParameterType,
60 ErrorCode_SQLiteNotOpened, 60 ErrorCode_SQLiteNotOpened,
81 OrthancSQLiteException(ErrorCode error) : 81 OrthancSQLiteException(ErrorCode error) :
82 ::std::runtime_error(EnumerationToString(error)) 82 ::std::runtime_error(EnumerationToString(error))
83 { 83 {
84 } 84 }
85 85
86 // Auto-generated by "Resources/GenerateErrorCodes.py" 86 // Auto-generated by "Resources/CodeGeneration/GenerateErrorCodes.py"
87 static const char* EnumerationToString(ErrorCode code) 87 static const char* EnumerationToString(ErrorCode code)
88 { 88 {
89 switch (code) 89 switch (code)
90 { 90 {
91 case ErrorCode_ParameterOutOfRange: 91 case ErrorCode_ParameterOutOfRange: