Exception: Hpe3parSdk::HTTPExpectationFailed

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

Returns a new instance of HTTPExpectationFailed.



334
335
336
337
338
339
340
# File 'lib/Hpe3parSdk/exceptions.rb', line 334

def initialize(code = nil, message =nil, ref =nil, http_status=nil)
  @http_status = 417
  @message = 'Expectation Failed'
  super(code, message.nil? ? @message : message,
        ref,
        http_status.nil? ? @http_status : http_status)
end

Instance Attribute Details

#http_statusObject (readonly)

HTTP 417 - The server cannot meet the requirements of the Expect

request-header field.


331
332
333
# File 'lib/Hpe3parSdk/exceptions.rb', line 331

def http_status
  @http_status
end

#messageObject (readonly)

HTTP 417 - The server cannot meet the requirements of the Expect

request-header field.


331
332
333
# File 'lib/Hpe3parSdk/exceptions.rb', line 331

def message
  @message
end