Mercurial > hg > orthanc
comparison Core/Enumerations.cpp @ 1578:09715095fc53
cont
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 25 Aug 2015 15:33:36 +0200 |
parents | 7aac0cddd42e |
children | b93c398f934d |
comparison
equal
deleted
inserted
replaced
1577:7aac0cddd42e | 1578:09715095fc53 |
---|---|
38 | 38 |
39 #include <string.h> | 39 #include <string.h> |
40 | 40 |
41 namespace Orthanc | 41 namespace Orthanc |
42 { | 42 { |
43 // This function is autogenerated by the script | |
44 // "Resources/GenerateErrorCodes.py" | |
43 const char* EnumerationToString(ErrorCode error) | 45 const char* EnumerationToString(ErrorCode error) |
44 { | 46 { |
45 switch (error) | 47 switch (error) |
46 { | 48 { |
47 case ErrorCode_Custom: | 49 case ErrorCode_Custom: |
919 throw OrthancException(ErrorCode_ParameterOutOfRange); | 921 throw OrthancException(ErrorCode_ParameterOutOfRange); |
920 } | 922 } |
921 } | 923 } |
922 | 924 |
923 | 925 |
926 // This function is autogenerated by the script | |
927 // "Resources/GenerateErrorCodes.py" | |
924 HttpStatus ConvertErrorCodeToHttpStatus(ErrorCode error) | 928 HttpStatus ConvertErrorCodeToHttpStatus(ErrorCode error) |
925 { | 929 { |
926 switch (error) | 930 switch (error) |
927 { | 931 { |
928 case ErrorCode_Success: | 932 case ErrorCode_Success: |