Exception: Hpe3parSdk::HTTPGatewayTimeout
- Inherits:
-
HPE3PARException
- Object
- StandardError
- HPE3PARException
- Hpe3parSdk::HTTPGatewayTimeout
- Defined in:
- lib/Hpe3parSdk/exceptions.rb
Instance Attribute Summary collapse
-
#http_status ⇒ Object
readonly
HTTP 504 - The server was acting as a gateway or proxy and did not receive a timely response from the upstream server.
-
#message ⇒ Object
readonly
HTTP 504 - The server was acting as a gateway or proxy and did not receive a timely response from the upstream server.
Attributes inherited from HPE3PARException
Instance Method Summary collapse
-
#initialize(code = nil, message = nil, ref = nil, http_status = nil) ⇒ HTTPGatewayTimeout
constructor
A new instance of HTTPGatewayTimeout.
Constructor Details
#initialize(code = nil, message = nil, ref = nil, http_status = nil) ⇒ HTTPGatewayTimeout
Returns a new instance of HTTPGatewayTimeout.
428 429 430 431 432 433 434 |
# File 'lib/Hpe3parSdk/exceptions.rb', line 428 def initialize(code = nil, =nil, ref =nil, http_status=nil) @http_status = 504 @message = 'Gateway Timeout' super(code, .nil? ? @message : , ref, http_status.nil? ? @http_status : http_status) end |
Instance Attribute Details
#http_status ⇒ Object (readonly)
HTTP 504 - The server was acting as a gateway or proxy and did
not receive a timely response from the upstream server.
425 426 427 |
# File 'lib/Hpe3parSdk/exceptions.rb', line 425 def http_status @http_status end |
#message ⇒ Object (readonly)
HTTP 504 - The server was acting as a gateway or proxy and did
not receive a timely response from the upstream server.
425 426 427 |
# File 'lib/Hpe3parSdk/exceptions.rb', line 425 def @message end |