Status: New
Owner: ----
Labels: Type-Enhancement Priority-Medium
New issue 56 by
jeam...@gmail.com: Make Jayrock meet the error requirements
of JSON-RPC 2.0
http://code.google.com/p/jayrock/issues/detail?id=56
Given that JSON-RPC does not define the error object, but JSON-RPC 2.0
does, it would be nice or interesting to encapsulate all exceptions thrown
by an application with a custom exception, as to make the JsonRpcError
class return a correct JSON-RPC 2.0 error object.
e.g. as for now Jayrock returns an object like { "name", "error", "errors"
} whilst JSON-RPC 2.0 specification defines the error object as
{ "code", "message", "data" }. I have edited somewhat the code of the
application, and found that you can perfectly define custom Exceptions with
a code (and still treat basic Exceptions with a custom "unknown Exception"
code). This way you can offer a JsonException class to the user, which
could be inherited and the error code changed or something.
I marked this as an enhancement because the current error object meets
JSON-RPC 1.0 requirements.
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings