Exception: Logister::Client::RequestError
- Inherits:
-
StandardError
- Object
- StandardError
- Logister::Client::RequestError
- Defined in:
- lib/logister/client.rb
Instance Attribute Summary collapse
-
#retry_after ⇒ Object
readonly
Returns the value of attribute retry_after.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(status, retry_after: nil) ⇒ RequestError
constructor
A new instance of RequestError.
Constructor Details
#initialize(status, retry_after: nil) ⇒ RequestError
Returns a new instance of RequestError.
22 23 24 25 26 |
# File 'lib/logister/client.rb', line 22 def initialize(status, retry_after: nil) @status = status.to_i @retry_after = retry_after super("HTTP #{status}") end |
Instance Attribute Details
#retry_after ⇒ Object (readonly)
Returns the value of attribute retry_after.
20 21 22 |
# File 'lib/logister/client.rb', line 20 def retry_after @retry_after end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
20 21 22 |
# File 'lib/logister/client.rb', line 20 def status @status end |