Exception: Hpe3parSdk::HTTPLengthRequired
- Inherits:
-
HPE3PARException
- Object
- StandardError
- HPE3PARException
- Hpe3parSdk::HTTPLengthRequired
- Defined in:
- lib/Hpe3parSdk/exceptions.rb
Instance Attribute Summary collapse
-
#http_status ⇒ Object
readonly
HTTP 411 - The request did not specify the length of its content, which is required by the requested resource.
-
#message ⇒ Object
readonly
HTTP 411 - The request did not specify the length of its content, which is required by the requested resource.
Attributes inherited from HPE3PARException
Instance Method Summary collapse
-
#initialize(code = nil, message = nil, ref = nil, http_status = nil) ⇒ HTTPLengthRequired
constructor
A new instance of HTTPLengthRequired.
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, =nil, ref =nil, http_status=nil) @http_status = 411 @message = 'Length Required' super(code, .nil? ? @message : , ref, http_status.nil? ? @http_status : http_status) end |
Instance Attribute Details
#http_status ⇒ Object (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 |
#message ⇒ Object (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 end |