YUKI Hiroshi
null+****@clear*****
Wed Feb 19 16:34:13 JST 2014
YUKI Hiroshi 2014-02-19 16:34:13 +0900 (Wed, 19 Feb 2014) New Revision: 07022e6072f90534871d3f7330989a11a9099da2 https://github.com/droonga/droonga.org/commit/07022e6072f90534871d3f7330989a11a9099da2 Message: Add note about shorthand Modified files: reference/plugin/error/index.md Modified: reference/plugin/error/index.md (+1 -0) =================================================================== --- reference/plugin/error/index.md 2014-02-19 15:56:10 +0900 (5c54981) +++ reference/plugin/error/index.md 2014-02-19 16:34:13 +0900 (8e4bf9e) @@ -12,6 +12,7 @@ layout: en Any unhandled error raised from a plugin is returned as an [error response][] for the corresponding incoming message, with the status code `500` (means "internal error"). If you want formatted error information to be returned, then rescue errors and raise your custom errors inheriting `Droonga::ErrorMessage::BadRequest` or `Droonga::ErrorMessage::InternalServerError` instead of raw errors. +(By the way, they are already included to the base class of plugins so you can define your custom errors easily like: `class CustomError < BadRequest`) ## Built-in error classes {#builtin-errors} -------------- next part -------------- HTML����������������������������...Download