Exception: Hpe3parSdk::HTTPServiceUnavailable
- Inherits:
-
HPE3PARException
- Object
- StandardError
- HPE3PARException
- Hpe3parSdk::HTTPServiceUnavailable
- Defined in:
- lib/Hpe3parSdk/exceptions.rb
Instance Attribute Summary collapse
-
#http_status ⇒ Object
readonly
HTTP 503 - The server is currently unavailable.
-
#message ⇒ Object
readonly
HTTP 503 - The server is currently unavailable.
Attributes inherited from HPE3PARException
Instance Method Summary collapse
-
#initialize(code = nil, message = nil, ref = nil, http_status = nil) ⇒ HTTPServiceUnavailable
constructor
A new instance of HTTPServiceUnavailable.
Constructor Details
#initialize(code = nil, message = nil, ref = nil, http_status = nil) ⇒ HTTPServiceUnavailable
Returns a new instance of HTTPServiceUnavailable.
412 413 414 415 416 417 418 |
# File 'lib/Hpe3parSdk/exceptions.rb', line 412 def initialize(code = nil, =nil, ref =nil, http_status=nil) @http_status = 503 @message = 'Service Unavailable' super(code, .nil? ? @message : , ref, http_status.nil? ? @http_status : http_status) end |
Instance Attribute Details
#http_status ⇒ Object (readonly)
HTTP 503 - The server is currently unavailable
409 410 411 |
# File 'lib/Hpe3parSdk/exceptions.rb', line 409 def http_status @http_status end |
#message ⇒ Object (readonly)
HTTP 503 - The server is currently unavailable
409 410 411 |
# File 'lib/Hpe3parSdk/exceptions.rb', line 409 def @message end |