comparison Core/Enumerations.h @ 1583:9ea3d082b064

got rid of custom exceptions
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 25 Aug 2015 17:52:50 +0200
parents bd1889029cbb
children f2e3d030ea59
comparison
equal deleted inserted replaced
1582:bd1889029cbb 1583:9ea3d082b064
43 43
44 // This enumeration is autogenerated by the script 44 // This enumeration is autogenerated by the script
45 // "Resources/GenerateErrorCodes.py" 45 // "Resources/GenerateErrorCodes.py"
46 enum ErrorCode 46 enum ErrorCode
47 { 47 {
48 ErrorCode_Custom = -2 /*!< Custom error, see the attached error message */,
49 ErrorCode_InternalError = -1 /*!< Internal error */, 48 ErrorCode_InternalError = -1 /*!< Internal error */,
50 ErrorCode_Success = 0 /*!< Success */, 49 ErrorCode_Success = 0 /*!< Success */,
51 ErrorCode_Plugin = 1 /*!< Error encountered within the plugin engine */, 50 ErrorCode_Plugin = 1 /*!< Error encountered within the plugin engine */,
52 ErrorCode_NotImplemented = 2 /*!< Not implemented yet */, 51 ErrorCode_NotImplemented = 2 /*!< Not implemented yet */,
53 ErrorCode_ParameterOutOfRange = 3 /*!< Parameter out of range */, 52 ErrorCode_ParameterOutOfRange = 3 /*!< Parameter out of range */,
117 ErrorCode_CreateDicomUseDataUriScheme = 2023 /*!< The payload of the DICOM instance must be specified according to Data URI scheme */, 116 ErrorCode_CreateDicomUseDataUriScheme = 2023 /*!< The payload of the DICOM instance must be specified according to Data URI scheme */,
118 ErrorCode_CreateDicomBadParent = 2024 /*!< Trying to attach a new DICOM instance to an inexistent resource */, 117 ErrorCode_CreateDicomBadParent = 2024 /*!< Trying to attach a new DICOM instance to an inexistent resource */,
119 ErrorCode_CreateDicomParentIsInstance = 2025 /*!< Trying to attach a new DICOM instance to an instance (must be a series, study or patient) */, 118 ErrorCode_CreateDicomParentIsInstance = 2025 /*!< Trying to attach a new DICOM instance to an instance (must be a series, study or patient) */,
120 ErrorCode_CreateDicomParentEncoding = 2026 /*!< Unable to get the encoding of the parent resource */, 119 ErrorCode_CreateDicomParentEncoding = 2026 /*!< Unable to get the encoding of the parent resource */,
121 ErrorCode_UnknownModality = 2027 /*!< Unknown modality */, 120 ErrorCode_UnknownModality = 2027 /*!< Unknown modality */,
122 ErrorCode_BadJobOrdering = 2028 /*!< Bad ordering of filters in a job */ 121 ErrorCode_BadJobOrdering = 2028 /*!< Bad ordering of filters in a job */,
122 ErrorCode_JsonToLuaTable = 2029 /*!< Cannot convert the given JSON object to a Lua table */,
123 ErrorCode_CannotCreateLua = 2030 /*!< Cannot create the Lua context */,
124 ErrorCode_CannotExecuteLua = 2031 /*!< Cannot execute a Lua command */,
125 ErrorCode_LuaAlreadyExecuted = 2032 /*!< Arguments cannot be pushed after the Lua function is executed */,
126 ErrorCode_LuaBadOutput = 2033 /*!< The Lua function does not give the expected number of outputs */,
127 ErrorCode_NotLuaPredicate = 2034 /*!< The Lua function is not a predicate (only true/false outputs allowed) */,
128 ErrorCode_LuaReturnsNoString = 2035 /*!< The Lua function does not return a string */
123 }; 129 };
124 130
125 enum LogLevel 131 enum LogLevel
126 { 132 {
127 LogLevel_Error, 133 LogLevel_Error,