class MCProtocol::JSONRPCErrorError

Included Modules

Defined in:

mcprotocol/jsonrpc_error.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(code : Int64, message : String, data : JSON::Any | Nil = Nil) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def code : Int64 #

The error type that occurred.


[View source]
def data : JSON::Any | Nil #

Additional information about the error. The value of this member is defined by the sender (e.g. detailed error information, nested errors etc.).


[View source]
def message : String #

A short description of the error. The message SHOULD be limited to a concise single sentence.


[View source]