Exception: Castle::RequestError
- Defined in:
- lib/castle/errors.rb
Overview
Raised when anything is wrong with the request (any unhappy path) This error indicates that either we would wait too long for a response or something else happened somewhere in the middle and we weren’t able to get the results
Instance Attribute Summary collapse
-
#reason ⇒ Object
readonly
Returns the value of attribute reason.
Instance Method Summary collapse
-
#initialize(reason) ⇒ RequestError
constructor
A new instance of RequestError.
Constructor Details
#initialize(reason) ⇒ RequestError
Returns a new instance of RequestError.
15 16 17 |
# File 'lib/castle/errors.rb', line 15 def initialize(reason) @reason = reason end |
Instance Attribute Details
#reason ⇒ Object (readonly)
Returns the value of attribute reason.
12 13 14 |
# File 'lib/castle/errors.rb', line 12 def reason @reason end |