Exception: EZApi::EZApiError
- Inherits:
-
StandardError
- Object
- StandardError
- EZApi::EZApiError
- Defined in:
- lib/ezapi/errors.rb
Direct Known Subclasses
ApiError, AuthenticationError, ConnectionError, InvalidRequestError, TooManyRequestsError
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(message = nil, body: nil, code: nil) ⇒ EZApiError
constructor
A new instance of EZApiError.
Constructor Details
#initialize(message = nil, body: nil, code: nil) ⇒ EZApiError
Returns a new instance of EZApiError.
4 5 6 7 8 |
# File 'lib/ezapi/errors.rb', line 4 def initialize( = nil, body: nil, code: nil ) @body = body @code = code super() end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
3 4 5 |
# File 'lib/ezapi/errors.rb', line 3 def body @body end |
#code ⇒ Object (readonly)
Returns the value of attribute code.
3 4 5 |
# File 'lib/ezapi/errors.rb', line 3 def code @code end |