mirror of https://gitee.com/bigwinds/arangodb
Added a convenience OOM result builder in RestBaseHandler
This commit is contained in:
parent
1d7b825462
commit
7555c2add0
|
@ -201,6 +201,13 @@ void RestBaseHandler::generateError (HttpResponse::HttpResponseCode code, int er
|
|||
}
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
/// @brief generates an OUT_OF_MEMORY error
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
void RestBaseHandler::generateOOMError () {
|
||||
generateError(HttpResponse::SERVER_ERROR, TRI_ERROR_OUT_OF_MEMORY);
|
||||
}
|
||||
// -----------------------------------------------------------------------------
|
||||
// --SECTION-- END-OF-FILE
|
||||
// -----------------------------------------------------------------------------
|
||||
|
|
|
@ -131,6 +131,12 @@ namespace triagens {
|
|||
int,
|
||||
std::string const&);
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
/// @brief generates an OUT_OF_MEMORY error
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
virtual void generateOOMError ();
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue