[Groonga-commit] droonga/droonga.org at 9f38316 [gh-pages] Fix error class name

Back to archive index

YUKI Hiroshi null+****@clear*****
Wed Feb 19 15:56:10 JST 2014


YUKI Hiroshi	2014-02-19 15:56:10 +0900 (Wed, 19 Feb 2014)

  New Revision: 9f383161a737cb609ab4da6dae9eb80cd3600313
  https://github.com/droonga/droonga.org/commit/9f383161a737cb609ab4da6dae9eb80cd3600313

  Message:
    Fix error class name

  Modified files:
    reference/plugin/error/index.md

  Modified: reference/plugin/error/index.md (+4 -4)
===================================================================
--- reference/plugin/error/index.md    2014-02-19 15:26:13 +0900 (990642b)
+++ reference/plugin/error/index.md    2014-02-19 15:56:10 +0900 (5c54981)
@@ -11,28 +11,28 @@ 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::MessageProcessingError` instead of raw errors.
+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.
 
 
 ## Built-in error classes {#builtin-errors}
 
 There are some pre-defined error classes used by built-in plugins and the Droonga Engine itself.
 
-### `Droonga::NotFound`
+### `Droonga::ErrorMessage::NotFound`
 
 Means an error which the specified resource is not found in the dataset or any source. For example:
 
     # the second argument means "details" of the error. (optional)
     raise Droonga::NotFound.new("#{name} is not found!", :elapsed_time => elapsed_time)
 
-### `Droonga::BadRequest`
+### `Droonga::ErrorMessage::BadRequest`
 
 Means any error originated from the incoming message itself, ex. syntax error, validation error, and so on. For example:
 
     # the second argument means "details" of the error. (optional)
     raise Droonga::NotFound.new("Syntax error in #{query}!", :detail => detail)
 
-### `Droonga::MessageProcessingError`
+### `Droonga::ErrorMessage::InternalServerError`
 
 Means other unknown error, ex. timed out, file I/O error, and so on. For example:
 
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index