Exception: Hpe3parSdk::HTTPRequestTimeout
- Inherits:
-
HPE3PARException
- Object
- StandardError
- HPE3PARException
- Hpe3parSdk::HTTPRequestTimeout
- Defined in:
- lib/Hpe3parSdk/exceptions.rb
Instance Attribute Summary collapse
-
#http_status ⇒ Object
readonly
HTTP 408 - The server timed out waiting for the request.
-
#message ⇒ Object
readonly
HTTP 408 - The server timed out waiting for the request.
Attributes inherited from HPE3PARException
Instance Method Summary collapse
-
#initialize(code = nil, message = nil, ref = nil, http_status = nil) ⇒ HTTPRequestTimeout
constructor
A new instance of HTTPRequestTimeout.
Constructor Details
#initialize(code = nil, message = nil, ref = nil, http_status = nil) ⇒ HTTPRequestTimeout
Returns a new instance of HTTPRequestTimeout.
192 193 194 195 196 197 198 |
# File 'lib/Hpe3parSdk/exceptions.rb', line 192 def initialize(code = nil, =nil, ref =nil, http_status=nil) @http_status = 408 @message = 'Request Timeout' super(code, .nil? ? @message : , ref, http_status.nil? ? @http_status : http_status) end |
Instance Attribute Details
#http_status ⇒ Object (readonly)
HTTP 408 - The server timed out waiting for the request.
189 190 191 |
# File 'lib/Hpe3parSdk/exceptions.rb', line 189 def http_status @http_status end |
#message ⇒ Object (readonly)
HTTP 408 - The server timed out waiting for the request.
189 190 191 |
# File 'lib/Hpe3parSdk/exceptions.rb', line 189 def @message end |