Exception: Thirdweb::Engine::APIError
- Defined in:
- lib/thirdweb/engine/errors.rb
Overview
API errors
Direct Known Subclasses
AuthenticationError, BadRequestError, NotFoundError, ServerError, UnauthorizedError
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) ⇒ self constructor
Constructor Details
#initialize(status, body) ⇒ self
18 19 20 21 22 |
# File 'lib/thirdweb/engine/errors.rb', line 18 def initialize(status, body) @status = status @body = body super("API Error: #{status} - #{body}") end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
13 14 15 |
# File 'lib/thirdweb/engine/errors.rb', line 13 def body @body end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
13 14 15 |
# File 'lib/thirdweb/engine/errors.rb', line 13 def status @status end |