Exception: ApiResource::RequestTimeout

Inherits:
ConnectionError show all
Defined in:
lib/api_resource/exceptions.rb

Overview

Raised when a Timeout::Error occurs.

Instance Attribute Summary

Attributes inherited from ConnectionError

#response

Instance Method Summary collapse

Methods inherited from ConnectionError

#http_code

Constructor Details

#initialize(message) ⇒ RequestTimeout

Returns a new instance of RequestTimeout.



42
43
44
# File 'lib/api_resource/exceptions.rb', line 42

def initialize(message)
  @message = message
end

Instance Method Details

#to_sObject



45
# File 'lib/api_resource/exceptions.rb', line 45

def to_s; @message ;end