mirror of https://gitee.com/bigwinds/arangodb
18 lines
610 B
Markdown
18 lines
610 B
Markdown
////////////////////////////////////////////////////////////////////////////////
|
|
/// @startDocuBlock JSF_foxx_RequestContextBuffer_errorResponse
|
|
///
|
|
/// `Controller.allRoutes.errorResponse(errorClass, code, description)`
|
|
///
|
|
/// This is equal to invoking `Route.errorResponse` on all routes bound to this controller.
|
|
///
|
|
/// *Examples*
|
|
///
|
|
/// ```js
|
|
/// app.allRoutes.errorResponse(FoxxyError, 303, "This went completely wrong. Sorry!");
|
|
///
|
|
/// app.get("/foxx", function {
|
|
/// // Do something
|
|
/// });
|
|
/// ```
|
|
/// @endDocuBlock
|
|
//////////////////////////////////////////////////////////////////////////////// |