struct LSP::Protocol::ResponseError

Defined in:

lsp/protocol/response_error.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(__temp_263 : JSON::PullParser) #

[View source]
def self.new(ex : ProtocolException) #

[View source]
def self.new(ex : Exception) #

[View source]
def self.new(message : String, data : Nil | Array(String) = nil, code : LSP::Protocol::ErrorCodes = ErrorCodes::UnknownErrorCode) #

[View source]

Instance Method Detail

def code : ErrorCodes #

[View source]
def code=(_code : ErrorCodes) #

[View source]
def data : Union(Array(String), Nil) #

[View source]
def data=(_data : Union(Array(String), Nil)) #

[View source]
def message : String #

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

[View source]
def to_json(json : JSON::Builder) #

[View source]