class

LSP::ResponseMessage(T)

Inherits JSON::Serializable < LSP::Message < Reference < Object

Constructors

new(pull : JSON::PullParser)
Source
new(id : Int32 | String | Nil = nil, result : T | Nil = nil, error : LSP::ResponseError | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

error

The error object in case a request fails.

Source
error=(error : ResponseError | Nil)

The error object in case a request fails.

Source
id=(id : Int32 | String | Nil)
Source
result

The result of a request. This member is REQUIRED on success. This member MUST NOT exist if there was an error invoking the method.

Source
result=(result : T | Nil)

The result of a request. This member is REQUIRED on success. This member MUST NOT exist if there was an error invoking the method.

Source