Exception: Octopi::RetryableAPIError
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- Octopi::RetryableAPIError
- Defined in:
- lib/octopi/error.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
Instance Method Summary collapse
-
#initialize(code = nil) ⇒ RetryableAPIError
constructor
A new instance of RetryableAPIError.
Constructor Details
#initialize(code = nil) ⇒ RetryableAPIError
Returns a new instance of RetryableAPIError.
20 21 22 23 24 |
# File 'lib/octopi/error.rb', line 20 def initialize(code=nil) @code = code.nil? ? '???' : code @message = "GitHub returned status #{@code}. Retrying request." super @message end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
19 20 21 |
# File 'lib/octopi/error.rb', line 19 def code @code end |