class

JsonRpc::LocalCallError

Inherits JsonRpc::Error / Exception / Reference / Object

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.

Constructors

new(code : Int32, public_message : String, data = nil)
Source
new(message, code : Int32, public_message : String, data = nil)
Source
new(message, public_message : String, data = nil)
Source
new(public_message : String, data = nil)
Source
new(message, object : JSON::Any)
Source

Class methods

error_object(code : Int32, public_message : String, data = nil)
Source

Instance methods

object
Source