Exception: RHC::Rest::TimeoutException
- Inherits:
-
ConnectionException
- Object
- RuntimeError
- Exception
- ConnectionException
- RHC::Rest::TimeoutException
- Defined in:
- lib/rhc/rest.rb
Instance Attribute Summary
Attributes inherited from Exception
Instance Method Summary collapse
-
#initialize(message, nested = nil) ⇒ TimeoutException
constructor
A new instance of TimeoutException.
- #on_connect? ⇒ Boolean
- #on_receive? ⇒ Boolean
- #on_send? ⇒ Boolean
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(, nested=nil) super() @nested = nested end |
Instance Method Details
#on_connect? ⇒ Boolean
114 115 116 |
# File 'lib/rhc/rest.rb', line 114 def on_connect? @nested.is_a? HTTPClient::ConnectTimeoutError end |
#on_receive? ⇒ Boolean
111 112 113 |
# File 'lib/rhc/rest.rb', line 111 def on_receive? @nested.is_a? HTTPClient::ReceiveTimeoutError end |
#on_send? ⇒ Boolean
117 118 119 |
# File 'lib/rhc/rest.rb', line 117 def on_send? @nested.is_a? HTTPClient::SendTimeoutError end |