Exception: Shotwolf::TimeoutError

Inherits:
Error
  • Object
show all
Defined in:
lib/shotwolf/errors.rb

Overview

Raised when a request exceeds the configured timeout.

Instance Attribute Summary

Attributes inherited from Error

#request_id, #retry_after, #status, #type

Instance Method Summary collapse

Constructor Details

#initialize(timeout) ⇒ TimeoutError

Returns a new instance of TimeoutError.



21
22
23
# File 'lib/shotwolf/errors.rb', line 21

def initialize(timeout)
  super("Request timed out after #{timeout}s", type: "timeout", status: 0)
end