Exception: Hpe3parSdk::HTTPInternalServerError

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

Returns a new instance of HTTPInternalServerError.



367
368
369
370
371
372
373
# File 'lib/Hpe3parSdk/exceptions.rb', line 367

def initialize(code = nil, message =nil, ref =nil, http_status=nil)
  @http_status = 500
  @message = 'Internal Server Error'
  super(code, message.nil? ? @message : message,
        ref,
        http_status.nil? ? @http_status : http_status)
end

Instance Attribute Details

#http_statusObject (readonly)

HTTP 500 - Internal Server Error: an internal error occured.



364
365
366
# File 'lib/Hpe3parSdk/exceptions.rb', line 364

def http_status
  @http_status
end

#messageObject (readonly)

HTTP 500 - Internal Server Error: an internal error occured.



364
365
366
# File 'lib/Hpe3parSdk/exceptions.rb', line 364

def message
  @message
end