1
0
Fork 0

more errors

This commit is contained in:
Frank Celler 2012-04-24 15:38:21 +02:00
parent 4fb7c9fe4d
commit 0d35aabad6
5 changed files with 16 additions and 0 deletions

View File

@ -14,6 +14,7 @@ ERROR_DEAD_PID,8,"dead process identifier","Will be raised when a PID without a
ERROR_NOT_IMPLEMENTED,9,"not implemented","Will be raised when hitting an unimplemented feature."
ERROR_BAD_PARAMETER,10,"bad parameter","Will be raised when the parameter does not fulfill the requirements."
ERROR_FORBIDDEN,11,"forbidden","Will be raised when you are missing permission for the operation."
ERROR_OUT_OF_MEMORY_MMAP,12,"out of memory in mmap","Weill be raised when there is a memory shortage."
################################################################################
## HTTP standard errors

View File

@ -23,6 +23,7 @@ void TRI_InitialiseErrorMessages (void) {
REG_ERROR(ERROR_NOT_IMPLEMENTED, "not implemented");
REG_ERROR(ERROR_BAD_PARAMETER, "bad parameter");
REG_ERROR(ERROR_FORBIDDEN, "forbidden");
REG_ERROR(ERROR_OUT_OF_MEMORY_MMAP, "out of memory in mmap");
REG_ERROR(ERROR_HTTP_BAD_PARAMETER, "bad parameter");
REG_ERROR(ERROR_HTTP_FORBIDDEN, "forbidden");
REG_ERROR(ERROR_HTTP_NOT_FOUND, "not found");

View File

@ -35,6 +35,8 @@ extern "C" {
/// Will be raised when the parameter does not fulfill the requirements.
/// - 11: @CODE{forbidden}
/// Will be raised when you are missing permission for the operation.
/// - 12: @CODE{out of memory in mmap}
/// Weill be raised when there is a memory shortage.
/// - 400: @CODE{bad parameter}
/// Will be raised when the HTTP request does not fulfill the requirements.
/// - 403: @CODE{forbidden}
@ -396,6 +398,16 @@ void TRI_InitialiseErrorMessages (void);
#define TRI_ERROR_FORBIDDEN (11)
////////////////////////////////////////////////////////////////////////////////
/// @brief 12: ERROR_OUT_OF_MEMORY_MMAP
///
/// out of memory in mmap
///
/// Weill be raised when there is a memory shortage.
////////////////////////////////////////////////////////////////////////////////
#define TRI_ERROR_OUT_OF_MEMORY_MMAP (12)
////////////////////////////////////////////////////////////////////////////////
/// @brief 400: ERROR_HTTP_BAD_PARAMETER
///

View File

@ -17,6 +17,7 @@ ModuleCache["/internal"].exports.errors = {
"ERROR_NOT_IMPLEMENTED" : { "code" : 9, "message" : "not implemented" },
"ERROR_BAD_PARAMETER" : { "code" : 10, "message" : "bad parameter" },
"ERROR_FORBIDDEN" : { "code" : 11, "message" : "forbidden" },
"ERROR_OUT_OF_MEMORY_MMAP" : { "code" : 12, "message" : "out of memory in mmap" },
"ERROR_HTTP_BAD_PARAMETER" : { "code" : 400, "message" : "bad parameter" },
"ERROR_HTTP_FORBIDDEN" : { "code" : 403, "message" : "forbidden" },
"ERROR_HTTP_NOT_FOUND" : { "code" : 404, "message" : "not found" },

View File

@ -18,6 +18,7 @@ static string JS_common_bootstrap_errors =
" \"ERROR_NOT_IMPLEMENTED\" : { \"code\" : 9, \"message\" : \"not implemented\" }, \n"
" \"ERROR_BAD_PARAMETER\" : { \"code\" : 10, \"message\" : \"bad parameter\" }, \n"
" \"ERROR_FORBIDDEN\" : { \"code\" : 11, \"message\" : \"forbidden\" }, \n"
" \"ERROR_OUT_OF_MEMORY_MMAP\" : { \"code\" : 12, \"message\" : \"out of memory in mmap\" }, \n"
" \"ERROR_HTTP_BAD_PARAMETER\" : { \"code\" : 400, \"message\" : \"bad parameter\" }, \n"
" \"ERROR_HTTP_FORBIDDEN\" : { \"code\" : 403, \"message\" : \"forbidden\" }, \n"
" \"ERROR_HTTP_NOT_FOUND\" : { \"code\" : 404, \"message\" : \"not found\" }, \n"