Exception: Hpe3parSdk::HTTPLengthRequired

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

Returns a new instance of HTTPLengthRequired.



239
240
241
242
243
244
245
# File 'lib/Hpe3parSdk/exceptions.rb', line 239

def initialize(code = nil, message =nil, ref =nil, http_status=nil)
  @http_status = 411
  @message = 'Length Required'
  super(code, message.nil? ? @message : message,
        ref,
        http_status.nil? ? @http_status : http_status)
end

Instance Attribute Details

#http_statusObject (readonly)

HTTP 411 - The request did not specify the length of its content, which is

required by the requested resource.


236
237
238
# File 'lib/Hpe3parSdk/exceptions.rb', line 236

def http_status
  @http_status
end

#messageObject (readonly)

HTTP 411 - The request did not specify the length of its content, which is

required by the requested resource.


236
237
238
# File 'lib/Hpe3parSdk/exceptions.rb', line 236

def message
  @message
end