Exception: Hpe3parSdk::HTTPVersionNotSupported

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

Returns a new instance of HTTPVersionNotSupported.



444
445
446
447
448
449
450
# File 'lib/Hpe3parSdk/exceptions.rb', line 444

def initialize(code = nil, message =nil, ref =nil, http_status=nil)
  @http_status = 505
  @message = 'Version Not Supported'
  super(code, message.nil? ? @message : message,
        ref,
        http_status.nil? ? @http_status : http_status)
end

Instance Attribute Details

#http_statusObject (readonly)

HTTP 505 - The server does not support the HTTP protocol version used

in the request.


441
442
443
# File 'lib/Hpe3parSdk/exceptions.rb', line 441

def http_status
  @http_status
end

#messageObject (readonly)

HTTP 505 - The server does not support the HTTP protocol version used

in the request.


441
442
443
# File 'lib/Hpe3parSdk/exceptions.rb', line 441

def message
  @message
end