Exception: Hpe3parSdk::HTTPNotImplemented

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

Returns a new instance of HTTPNotImplemented.



382
383
384
385
386
387
388
# File 'lib/Hpe3parSdk/exceptions.rb', line 382

def initialize(code = nil, message =nil, ref =nil, http_status=nil)
  @http_status = 501
  @message = 'Not Implemented'
  super(code, message.nil? ? @message : message,
        ref,
        http_status.nil? ? @http_status : http_status)
end

Instance Attribute Details

#http_statusObject (readonly)

HTTP 501 - Not Implemented: the server does not support this operation.



379
380
381
# File 'lib/Hpe3parSdk/exceptions.rb', line 379

def http_status
  @http_status
end

#messageObject (readonly)

HTTP 501 - Not Implemented: the server does not support this operation.



379
380
381
# File 'lib/Hpe3parSdk/exceptions.rb', line 379

def message
  @message
end