Exception: LinodeAPI::RetriedHTTPError

Inherits:
HTTPError
  • Object
show all
Defined in:
lib/linodeapi/errors.rb

Overview

A retryable error that has exceeded its max retries

Instance Attribute Summary collapse

Attributes inherited from HTTPError

#code

Instance Method Summary collapse

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

#retriesObject (readonly)

Returns the value of attribute retries.



16
17
18
# File 'lib/linodeapi/errors.rb', line 16

def retries
  @retries
end