Exception: LinodeAPI::RetriedHTTPError
- Defined in:
- lib/linodeapi/errors.rb
Overview
A retryable error that has exceeded its max retries
Instance Attribute Summary collapse
-
#retries ⇒ Object
readonly
Returns the value of attribute retries.
Attributes inherited from HTTPError
Instance Method Summary collapse
-
#initialize(code, retries, msg = nil) ⇒ RetriedHTTPError
constructor
A new instance of RetriedHTTPError.
Constructor Details
#initialize(code, retries, msg = nil) ⇒ RetriedHTTPError
Returns a new instance of RetriedHTTPError.
18 19 20 21 22 |
# File 'lib/linodeapi/errors.rb', line 18 def initialize(code, retries, msg = nil) @retries = retries msg ||= "HTTP Error encountered (retried #{retries} times)" super(code, msg) end |
Instance Attribute Details
#retries ⇒ Object (readonly)
Returns the value of attribute retries.
16 17 18 |
# File 'lib/linodeapi/errors.rb', line 16 def retries @retries end |