Exception: Hpe3parSdk::HTTPExpectationFailed
- Inherits:
-
HPE3PARException
- Object
- StandardError
- HPE3PARException
- Hpe3parSdk::HTTPExpectationFailed
- Defined in:
- lib/Hpe3parSdk/exceptions.rb
Instance Attribute Summary collapse
-
#http_status ⇒ Object
readonly
HTTP 417 - The server cannot meet the requirements of the Expect request-header field.
-
#message ⇒ Object
readonly
HTTP 417 - The server cannot meet the requirements of the Expect request-header field.
Attributes inherited from HPE3PARException
Instance Method Summary collapse
-
#initialize(code = nil, message = nil, ref = nil, http_status = nil) ⇒ HTTPExpectationFailed
constructor
A new instance of HTTPExpectationFailed.
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, =nil, ref =nil, http_status=nil) @http_status = 417 = 'Expectation Failed' super(code, .nil? ? : , ref, http_status.nil? ? @http_status : http_status) end |
Instance Attribute Details
#http_status ⇒ Object (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 |
#message ⇒ Object (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 end |