Exception: OpenApiError::BaseError
- Inherits:
-
StandardError
- Object
- StandardError
- OpenApiError::BaseError
- Defined in:
- lib/cdnetworks-client/open_api_error.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#body ⇒ Object
Returns the value of attribute body.
-
#code ⇒ Object
Returns the value of attribute code.
Instance Method Summary collapse
-
#initialize(error, code = nil, body = nil) ⇒ BaseError
constructor
A new instance of BaseError.
Constructor Details
#initialize(error, code = nil, body = nil) ⇒ BaseError
Returns a new instance of BaseError.
17 18 19 20 21 |
# File 'lib/cdnetworks-client/open_api_error.rb', line 17 def initialize(error, code = nil, body = nil) @code = code @body = body super(error) end |
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute body.
15 16 17 |
# File 'lib/cdnetworks-client/open_api_error.rb', line 15 def body @body end |
#code ⇒ Object
Returns the value of attribute code.
15 16 17 |
# File 'lib/cdnetworks-client/open_api_error.rb', line 15 def code @code end |