Exception: Hpe3parSdk::HTTPServiceUnavailable

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) ⇒ HTTPServiceUnavailable

Returns a new instance of HTTPServiceUnavailable.



412
413
414
415
416
417
418
# File 'lib/Hpe3parSdk/exceptions.rb', line 412

def initialize(code = nil, message =nil, ref =nil, http_status=nil)
  @http_status = 503
  @message = 'Service Unavailable'
  super(code, message.nil? ? @message : message,
        ref,
        http_status.nil? ? @http_status : http_status)
end

Instance Attribute Details

#http_statusObject (readonly)

HTTP 503 - The server is currently unavailable



409
410
411
# File 'lib/Hpe3parSdk/exceptions.rb', line 409

def http_status
  @http_status
end

#messageObject (readonly)

HTTP 503 - The server is currently unavailable



409
410
411
# File 'lib/Hpe3parSdk/exceptions.rb', line 409

def message
  @message
end