Exception: Hpe3parSdk::HTTPRequestedRangeNotSatisfiable
- Inherits:
-
HPE3PARException
- Object
- StandardError
- HPE3PARException
- Hpe3parSdk::HTTPRequestedRangeNotSatisfiable
- Defined in:
- lib/Hpe3parSdk/exceptions.rb
Instance Attribute Summary collapse
-
#http_status ⇒ Object
readonly
HTTP 416 - The client has asked for a portion of the file, but the server cannot supply that portion.
-
#message ⇒ Object
readonly
HTTP 416 - The client has asked for a portion of the file, but the server cannot supply that portion.
Attributes inherited from HPE3PARException
Instance Method Summary collapse
-
#initialize(code = nil, message = nil, ref = nil, http_status = nil) ⇒ HTTPRequestedRangeNotSatisfiable
constructor
A new instance of HTTPRequestedRangeNotSatisfiable.
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, =nil, ref =nil, http_status=nil) @http_status = 416 @message = 'Requested Range Not Satisfiable' super(code, .nil? ? @message : , ref, http_status.nil? ? @http_status : http_status) end |
Instance Attribute Details
#http_status ⇒ Object (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 |
#message ⇒ Object (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 end |