Exception: Hpe3parSdk::HTTPNotAcceptable
- Inherits:
-
HPE3PARException
- Object
- StandardError
- HPE3PARException
- Hpe3parSdk::HTTPNotAcceptable
- Defined in:
- lib/Hpe3parSdk/exceptions.rb
Instance Attribute Summary collapse
-
#http_status ⇒ Object
readonly
HTTP 406 - Method not Acceptable.
-
#message ⇒ Object
readonly
HTTP 406 - Method not Acceptable.
Attributes inherited from HPE3PARException
Instance Method Summary collapse
-
#initialize(code = nil, message = nil, ref = nil, http_status = nil) ⇒ HTTPNotAcceptable
constructor
A new instance of HTTPNotAcceptable.
Constructor Details
#initialize(code = nil, message = nil, ref = nil, http_status = nil) ⇒ HTTPNotAcceptable
Returns a new instance of HTTPNotAcceptable.
162 163 164 165 166 167 168 |
# File 'lib/Hpe3parSdk/exceptions.rb', line 162 def initialize(code = nil, =nil, ref =nil, http_status=nil) @http_status = 406 = 'Method Not Acceptable' super(code, .nil? ? : , ref, http_status.nil? ? @http_status : http_status) end |
Instance Attribute Details
#http_status ⇒ Object (readonly)
HTTP 406 - Method not Acceptable
159 160 161 |
# File 'lib/Hpe3parSdk/exceptions.rb', line 159 def http_status @http_status end |
#message ⇒ Object (readonly)
HTTP 406 - Method not Acceptable
159 160 161 |
# File 'lib/Hpe3parSdk/exceptions.rb', line 159 def end |