Exception: Spoom::LSP::ResponseError
- Defined in:
- lib/spoom/sorbet/lsp/errors.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#data ⇒ Object
readonly
Returns the value of attribute data.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(code, message, data) ⇒ ResponseError
constructor
A new instance of ResponseError.
Constructor Details
#initialize(code, message, data) ⇒ ResponseError
Returns a new instance of ResponseError.
38 39 40 41 42 |
# File 'lib/spoom/sorbet/lsp/errors.rb', line 38 def initialize(code, , data) @code = code @message = @data = data end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
28 29 30 |
# File 'lib/spoom/sorbet/lsp/errors.rb', line 28 def code @code end |
#data ⇒ Object (readonly)
Returns the value of attribute data.
28 29 30 |
# File 'lib/spoom/sorbet/lsp/errors.rb', line 28 def data @data end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
28 29 30 |
# File 'lib/spoom/sorbet/lsp/errors.rb', line 28 def @message end |
Class Method Details
.from_json(json) ⇒ Object
30 31 32 33 34 35 36 |
# File 'lib/spoom/sorbet/lsp/errors.rb', line 30 def self.from_json(json) ResponseError.new( json['code'], json['message'], json['data'] ) end |