struct ACP::Protocol::JsonRpcErrorObject

Overview

A JSON-RPC 2.0 error object, returned inside error responses.

Included Modules

Defined in:

acp/protocol/types.cr

Constructors

Instance Method Summary

Constructor Detail

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

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

[View source]

Instance Method Detail

def code : Int32 #

Integer error code.


[View source]
def code=(code : Int32) #

Integer error code.


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

Optional structured error data.


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

Optional structured error data.


[View source]
def message : String #

Human-readable error message.


[View source]
def message=(message : String) #

Human-readable error message.


[View source]