Exception: Rodzilla::JsonRpc::Error::ResponseError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/rodzilla/json_rpc/error.rb

Overview

Raised whenever the JsonRpc::Response#error attribute is not nil

Also inherited by Client & ServerError for handling HTTP Status Codes

Direct Known Subclasses

ClientError, ServerError

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(code) ⇒ ResponseError

Returns a new instance of ResponseError.



17
18
19
# File 'lib/rodzilla/json_rpc/error.rb', line 17

def initialize(code)
  @code = code
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



15
16
17
# File 'lib/rodzilla/json_rpc/error.rb', line 15

def code
  @code
end