Mercurial > hg > orthanc
diff Core/Enumerations.cpp @ 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 |
line wrap: on
line diff
--- a/Core/Enumerations.cpp Tue Aug 25 17:39:38 2015 +0200 +++ b/Core/Enumerations.cpp Tue Aug 25 17:52:50 2015 +0200 @@ -46,9 +46,6 @@ { switch (error) { - case ErrorCode_Custom: - return "Custom error, see the attached error message"; - case ErrorCode_InternalError: return "Internal error"; @@ -271,6 +268,27 @@ case ErrorCode_BadJobOrdering: return "Bad ordering of filters in a job"; + case ErrorCode_JsonToLuaTable: + return "Cannot convert the given JSON object to a Lua table"; + + case ErrorCode_CannotCreateLua: + return "Cannot create the Lua context"; + + case ErrorCode_CannotExecuteLua: + return "Cannot execute a Lua command"; + + case ErrorCode_LuaAlreadyExecuted: + return "Arguments cannot be pushed after the Lua function is executed"; + + case ErrorCode_LuaBadOutput: + return "The Lua function does not give the expected number of outputs"; + + case ErrorCode_NotLuaPredicate: + return "The Lua function is not a predicate (only true/false outputs allowed)"; + + case ErrorCode_LuaReturnsNoString: + return "The Lua function does not return a string"; + default: return "Unknown error code"; }