Exception: Hpe3parSdk::HTTPPreconditionFailed

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

Returns a new instance of HTTPPreconditionFailed.



255
256
257
258
259
260
261
# File 'lib/Hpe3parSdk/exceptions.rb', line 255

def initialize(code = nil, message =nil, ref =nil, http_status=nil)
  @http_status = 412
  @message = 'Over limit'
  super(code, message.nil? ? @message : message,
        ref,
        http_status.nil? ? @http_status : http_status)
end

Instance Attribute Details

#http_statusObject (readonly)

HTTP 412 - The server does not meet one of the preconditions that the

requester put on the request.


252
253
254
# File 'lib/Hpe3parSdk/exceptions.rb', line 252

def http_status
  @http_status
end

#messageObject (readonly)

HTTP 412 - The server does not meet one of the preconditions that the

requester put on the request.


252
253
254
# File 'lib/Hpe3parSdk/exceptions.rb', line 252

def message
  @message
end