Exception: ContentGateway::TimeoutError

Inherits:
BaseError
  • Object
show all
Defined in:
lib/content_gateway/exceptions.rb

Instance Attribute Summary

Attributes inherited from BaseError

#info, #resource_url, #status_code, #wrapped_exception

Instance Method Summary collapse

Constructor Details

#initialize(resource_url, wrapped_exception = nil, timeout = nil) ⇒ TimeoutError

Returns a new instance of TimeoutError.



40
41
42
43
44
# File 'lib/content_gateway/exceptions.rb', line 40

def initialize(resource_url, wrapped_exception = nil, timeout = nil)
  info = "TIMEOUT (max #{timeout} s)" if timeout

  super(resource_url, wrapped_exception, 408, info)
end