struct LSP::Protocol::ResponseError
- LSP::Protocol::ResponseError
- Struct
- Value
- Object
Defined in:
lsp/protocol/response_error.crConstructors
- .new(__temp_263 : JSON::PullParser)
- .new(ex : ProtocolException)
- .new(ex : Exception)
- .new(message : String, data : Nil | Array(String) = nil, code : LSP::Protocol::ErrorCodes = ErrorCodes::UnknownErrorCode)
Instance Method Summary
- #code : ErrorCodes
- #code=(_code : ErrorCodes)
- #data : Union(Array(String), Nil)
- #data=(_data : Union(Array(String), Nil))
- #message : String
- #message=(_message : String)
- #to_json(json : JSON::Builder)
Constructor Detail
def self.new(message : String, data : Nil | Array(String) = nil, code : LSP::Protocol::ErrorCodes = ErrorCodes::UnknownErrorCode)
#