comparison Core/Enumerations.cpp @ 1703:b80e76dd1d56 db-changes

ordered-slices continued
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 13 Oct 2015 16:10:35 +0200
parents 2e692c83e2f3
children d143db00a794
comparison
equal deleted inserted replaced
1702:9980875edc7c 1703:b80e76dd1d56
42 { 42 {
43 // This function is autogenerated by the script 43 // This function is autogenerated by the script
44 // "Resources/GenerateErrorCodes.py" 44 // "Resources/GenerateErrorCodes.py"
45 const char* EnumerationToString(ErrorCode error) 45 const char* EnumerationToString(ErrorCode error)
46 { 46 {
47 if (error >= ErrorCode_START_PLUGINS)
48 {
49 return "Error encountered within some plugin";
50 }
51
52 switch (error) 47 switch (error)
53 { 48 {
54 case ErrorCode_InternalError: 49 case ErrorCode_InternalError:
55 return "Internal error"; 50 return "Internal error";
56 51
316 return "Another plugin has already registered a custom database back-end"; 311 return "Another plugin has already registered a custom database back-end";
317 312
318 case ErrorCode_DatabaseNotInitialized: 313 case ErrorCode_DatabaseNotInitialized:
319 return "Plugin trying to call the database during its initialization"; 314 return "Plugin trying to call the database during its initialization";
320 315
321 default: 316 case ErrorCode_SslDisabled:
322 return "Unknown error code"; 317 return "Orthanc has been built without SSL support";
318
319 case ErrorCode_CannotOrderSlices:
320 return "Unable to order the slices of the series";
321
322 default:
323 if (error >= ErrorCode_START_PLUGINS)
324 {
325 return "Error encountered within some plugin";
326 }
327 else
328 {
329 return "Unknown error code";
330 }
323 } 331 }
324 } 332 }
325 333
326 334
327 const char* EnumerationToString(HttpMethod method) 335 const char* EnumerationToString(HttpMethod method)