Exception: Tempest::APIError
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(status, body) ⇒ APIError
constructor
A new instance of APIError.
Constructor Details
#initialize(status, body) ⇒ APIError
Returns a new instance of APIError.
18 19 20 21 22 |
# File 'lib/tempest.rb', line 18 def initialize(status, body) @status = status @body = body super("XRPC request failed with status #{status}: #{body.inspect}") end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
16 17 18 |
# File 'lib/tempest.rb', line 16 def body @body end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
16 17 18 |
# File 'lib/tempest.rb', line 16 def status @status end |