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.
107 108 109 110 |
# File 'lib/rhc/rest.rb', line 107 def initialize(, nested=nil) super() @nested = nested end |
Instance Method Details
#on_connect? ⇒ Boolean
115 116 117 |
# File 'lib/rhc/rest.rb', line 115 def on_connect? @nested.is_a? HTTPClient::ConnectTimeoutError end |
#on_receive? ⇒ Boolean
112 113 114 |
# File 'lib/rhc/rest.rb', line 112 def on_receive? @nested.is_a? HTTPClient::ReceiveTimeoutError end |
#on_send? ⇒ Boolean
118 119 120 |
# File 'lib/rhc/rest.rb', line 118 def on_send? @nested.is_a? HTTPClient::SendTimeoutError end |