Exception: Zanshin::SDK::Request::ZanshinError
- Inherits:
-
StandardError
- Object
- StandardError
- Zanshin::SDK::Request::ZanshinError
- Defined in:
- lib/zanshin/request/zanshin_request_error.rb
Overview
Zanshin SDK request ZanshinError
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#code ⇒ Object
readonly
Returns the value of attribute code.
Instance Method Summary collapse
-
#initialize(code, body) ⇒ ZanshinError
constructor
Initialize a new Zanshin Error.
Constructor Details
#initialize(code, body) ⇒ ZanshinError
Initialize a new Zanshin Error
14 15 16 17 18 |
# File 'lib/zanshin/request/zanshin_request_error.rb', line 14 def initialize(code, body) @code = code @body = body super("Error [#{code}] #{body}") end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
8 9 10 |
# File 'lib/zanshin/request/zanshin_request_error.rb', line 8 def body @body end |
#code ⇒ Object (readonly)
Returns the value of attribute code.
8 9 10 |
# File 'lib/zanshin/request/zanshin_request_error.rb', line 8 def code @code end |