Exception: Hpe3parSdk::HTTPBadGateway

Inherits:
HPE3PARException show all
Defined in:
lib/Hpe3parSdk/exceptions.rb

Instance Attribute Summary collapse

Attributes inherited from HPE3PARException

#code, #ref

Instance Method Summary collapse

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, message =nil, ref =nil, http_status=nil)
  @http_status = 502
  @message = 'Bad Gateway'
  super(code, message.nil? ? @message : message,
        ref,
        http_status.nil? ? @http_status : http_status)
end

Instance Attribute Details

#http_statusObject (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

#messageObject (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
  @message
end