Exception: Hpe3parSdk::HTTPRequestedRangeNotSatisfiable

Inherits:
HPE3PARException
  • Object
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) ⇒ HTTPRequestedRangeNotSatisfiable

Returns a new instance of HTTPRequestedRangeNotSatisfiable.



318
319
320
321
322
323
324
# File 'lib/Hpe3parSdk/exceptions.rb', line 318

def initialize(code = nil, message =nil, ref =nil, http_status=nil)
  @http_status = 416
  @message = 'Requested Range Not Satisfiable'
  super(code, message.nil? ? @message : message,
        ref,
        http_status.nil? ? @http_status : http_status)
end

Instance Attribute Details

#http_statusObject (readonly)

HTTP 416 - The client has asked for a portion of the file, but the server

cannot supply that portion.


315
316
317
# File 'lib/Hpe3parSdk/exceptions.rb', line 315

def http_status
  @http_status
end

#messageObject (readonly)

HTTP 416 - The client has asked for a portion of the file, but the server

cannot supply that portion.


315
316
317
# File 'lib/Hpe3parSdk/exceptions.rb', line 315

def message
  @message
end