Exception: Boltless::Errors::RequestError
- Inherits:
-
StandardError
- Object
- StandardError
- Boltless::Errors::RequestError
- Defined in:
- lib/boltless/errors/request_error.rb
Overview
A generic request error wrapper, from the low-level http.rb gem
Direct Known Subclasses
InvalidJsonError, TransactionBeginError, TransactionInBadStateError, TransactionNotFoundError, TransactionRollbackError
Instance Attribute Summary collapse
-
#message ⇒ Object
We allow to read our details.
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(message, response: nil) ⇒ Errors::RequestError
constructor
Create a new generic request error instance.
Constructor Details
#initialize(message, response: nil) ⇒ Errors::RequestError
Create a new generic request error instance.
17 18 19 20 21 |
# File 'lib/boltless/errors/request_error.rb', line 17 def initialize(, response: nil) super() @message = @response = response end |
Instance Attribute Details
#message ⇒ Object
We allow to read our details
8 9 10 |
# File 'lib/boltless/errors/request_error.rb', line 8 def @message end |
#response ⇒ Object (readonly)
Returns the value of attribute response.
9 10 11 |
# File 'lib/boltless/errors/request_error.rb', line 9 def response @response end |