Exception: Hpe3parSdk::HTTPBadGateway
- Inherits:
-
HPE3PARException
- Object
- StandardError
- HPE3PARException
- Hpe3parSdk::HTTPBadGateway
- Defined in:
- lib/Hpe3parSdk/exceptions.rb
Instance Attribute Summary collapse
-
#http_status ⇒ Object
readonly
HTTP 502 - The server was acting as a gateway or proxy and received an invalid response from the upstream server.
-
#message ⇒ Object
readonly
HTTP 502 - The server was acting as a gateway or proxy and received an invalid response from the upstream server.
Attributes inherited from HPE3PARException
Instance Method Summary collapse
-
#initialize(code = nil, message = nil, ref = nil, http_status = nil) ⇒ HTTPBadGateway
constructor
A new instance of HTTPBadGateway.
Constructor Details
#initialize(code = nil, message = nil, ref = nil, http_status = nil) ⇒ HTTPBadGateway
Returns a new instance of HTTPBadGateway.
397 398 399 400 401 402 403 |
# File 'lib/Hpe3parSdk/exceptions.rb', line 397 def initialize(code = nil, =nil, ref =nil, http_status=nil) @http_status = 502 @message = 'Bad Gateway' super(code, .nil? ? @message : , ref, http_status.nil? ? @http_status : http_status) end |
Instance Attribute Details
#http_status ⇒ Object (readonly)
HTTP 502 - The server was acting as a gateway or proxy and received an
invalid response from the upstream server.
395 396 397 |
# File 'lib/Hpe3parSdk/exceptions.rb', line 395 def http_status @http_status end |
#message ⇒ Object (readonly)
HTTP 502 - The server was acting as a gateway or proxy and received an
invalid response from the upstream server.
395 396 397 |
# File 'lib/Hpe3parSdk/exceptions.rb', line 395 def @message end |