class JsonRpc::LocalCallError

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.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(code : Int32, public_message : String, data = nil) #

[View source]
def self.new(message, code : Int32, public_message : String, data = nil) #

[View source]
def self.new(message, public_message : String, data = nil) #

[View source]
def self.new(public_message : String, data = nil) #

[View source]
def self.new(message, object : JSON::Any) #

[View source]

Class Method Detail

def self.error_object(code : Int32, public_message : String, data = nil) #

[View source]

Instance Method Detail

def object : JSON::Any #

[View source]