class JsonRpc::LocalCallError
- JsonRpc::LocalCallError
- JsonRpc::Error
- Exception
- Reference
- Object
Overview
Raised by a Handler
to send a custom error response to the remote client.
Instead of raising this error, you can also use Request#error
to craft an
error response.
Defined in:
json_rpc/local_call_error.crConstructors
- .new(code : Int32, public_message : String, data = nil)
- .new(message, code : Int32, public_message : String, data = nil)
- .new(message, public_message : String, data = nil)
- .new(public_message : String, data = nil)
- .new(message, object : JSON::Any)