Exception: Logister::Client::RequestError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/logister/client.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_afterObject (readonly)

Returns the value of attribute retry_after.



20
21
22
# File 'lib/logister/client.rb', line 20

def retry_after
  @retry_after
end

#statusObject (readonly)

Returns the value of attribute status.



20
21
22
# File 'lib/logister/client.rb', line 20

def status
  @status
end