Exception: LinodeAPI::RetryableHTTPError
- Defined in:
- lib/linodeapi/errors.rb
Overview
A retryable API error with embedded code and requested delay
Instance Attribute Summary collapse
-
#delay ⇒ Object
readonly
Returns the value of attribute delay.
Attributes inherited from HTTPError
Instance Method Summary collapse
-
#initialize(code, delay, msg = 'Retryable HTTP Error encountered') ⇒ RetryableHTTPError
constructor
A new instance of RetryableHTTPError.
Constructor Details
#initialize(code, delay, msg = 'Retryable HTTP Error encountered') ⇒ RetryableHTTPError
Returns a new instance of RetryableHTTPError.
30 31 32 33 |
# File 'lib/linodeapi/errors.rb', line 30 def initialize(code, delay, msg = 'Retryable HTTP Error encountered') @delay = delay.to_i super(code, msg) end |
Instance Attribute Details
#delay ⇒ Object (readonly)
Returns the value of attribute delay.
28 29 30 |
# File 'lib/linodeapi/errors.rb', line 28 def delay @delay end |