Exception: Hpe3parSdk::HTTPTeaPot
- Inherits:
-
HPE3PARException
- Object
- StandardError
- HPE3PARException
- Hpe3parSdk::HTTPTeaPot
- Defined in:
- lib/Hpe3parSdk/exceptions.rb
Instance Attribute Summary collapse
-
#http_status ⇒ Object
readonly
HTTP 418 - I’m a Tea Pot.
-
#message ⇒ Object
readonly
HTTP 418 - I’m a Tea Pot.
Attributes inherited from HPE3PARException
Instance Method Summary collapse
-
#initialize(code = nil, message = nil, ref = nil, http_status = nil) ⇒ HTTPTeaPot
constructor
A new instance of HTTPTeaPot.
Constructor Details
#initialize(code = nil, message = nil, ref = nil, http_status = nil) ⇒ HTTPTeaPot
Returns a new instance of HTTPTeaPot.
349 350 351 352 353 354 355 |
# File 'lib/Hpe3parSdk/exceptions.rb', line 349 def initialize(code = nil, =nil, ref =nil, http_status=nil) @http_status = 418 = 'I' 'm A Teapot. (RFC 2324)' super(code, .nil? ? : , ref, http_status.nil? ? @http_status : http_status) end |
Instance Attribute Details
#http_status ⇒ Object (readonly)
HTTP 418 - I’m a Tea Pot
346 347 348 |
# File 'lib/Hpe3parSdk/exceptions.rb', line 346 def http_status @http_status end |
#message ⇒ Object (readonly)
HTTP 418 - I’m a Tea Pot
346 347 348 |
# File 'lib/Hpe3parSdk/exceptions.rb', line 346 def end |