Exception: Hpe3parSdk::HTTPVersionNotSupported
- Inherits:
-
HPE3PARException
- Object
- StandardError
- HPE3PARException
- Hpe3parSdk::HTTPVersionNotSupported
- Defined in:
- lib/Hpe3parSdk/exceptions.rb
Instance Attribute Summary collapse
-
#http_status ⇒ Object
readonly
HTTP 505 - The server does not support the HTTP protocol version used in the request.
-
#message ⇒ Object
readonly
HTTP 505 - The server does not support the HTTP protocol version used in the request.
Attributes inherited from HPE3PARException
Instance Method Summary collapse
-
#initialize(code = nil, message = nil, ref = nil, http_status = nil) ⇒ HTTPVersionNotSupported
constructor
A new instance of HTTPVersionNotSupported.
Constructor Details
#initialize(code = nil, message = nil, ref = nil, http_status = nil) ⇒ HTTPVersionNotSupported
Returns a new instance of HTTPVersionNotSupported.
444 445 446 447 448 449 450 |
# File 'lib/Hpe3parSdk/exceptions.rb', line 444 def initialize(code = nil, =nil, ref =nil, http_status=nil) @http_status = 505 @message = 'Version Not Supported' super(code, .nil? ? @message : , ref, http_status.nil? ? @http_status : http_status) end |
Instance Attribute Details
#http_status ⇒ Object (readonly)
HTTP 505 - The server does not support the HTTP protocol version used
in the request.
441 442 443 |
# File 'lib/Hpe3parSdk/exceptions.rb', line 441 def http_status @http_status end |
#message ⇒ Object (readonly)
HTTP 505 - The server does not support the HTTP protocol version used
in the request.
441 442 443 |
# File 'lib/Hpe3parSdk/exceptions.rb', line 441 def @message end |