Exception: RHC::Rest::TimeoutException

Inherits:
ConnectionException show all
Defined in:
lib/rhc/rest.rb

Instance Attribute Summary

Attributes inherited from Exception

#code

Instance Method Summary collapse

Constructor Details

#initialize(message, nested = nil) ⇒ TimeoutException

Returns a new instance of TimeoutException.



106
107
108
109
# File 'lib/rhc/rest.rb', line 106

def initialize(message, nested=nil)
  super(message)
  @nested = nested
end

Instance Method Details

#on_connect?Boolean

Returns:

  • (Boolean)


114
115
116
# File 'lib/rhc/rest.rb', line 114

def on_connect?
  @nested.is_a? HTTPClient::ConnectTimeoutError
end

#on_receive?Boolean

Returns:

  • (Boolean)


111
112
113
# File 'lib/rhc/rest.rb', line 111

def on_receive?
  @nested.is_a? HTTPClient::ReceiveTimeoutError
end

#on_send?Boolean

Returns:

  • (Boolean)


117
118
119
# File 'lib/rhc/rest.rb', line 117

def on_send?
  @nested.is_a? HTTPClient::SendTimeoutError
end