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.



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

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

Instance Method Details

#on_connect?Boolean

Returns:

  • (Boolean)


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

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

#on_receive?Boolean

Returns:

  • (Boolean)


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

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

#on_send?Boolean

Returns:

  • (Boolean)


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

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