Exception: Hpe3parSdk::HTTPInternalServerError
- Inherits:
-
HPE3PARException
- Object
- StandardError
- HPE3PARException
- Hpe3parSdk::HTTPInternalServerError
- Defined in:
- lib/Hpe3parSdk/exceptions.rb
Instance Attribute Summary collapse
-
#http_status ⇒ Object
readonly
HTTP 500 - Internal Server Error: an internal error occured.
-
#message ⇒ Object
readonly
HTTP 500 - Internal Server Error: an internal error occured.
Attributes inherited from HPE3PARException
Instance Method Summary collapse
-
#initialize(code = nil, message = nil, ref = nil, http_status = nil) ⇒ HTTPInternalServerError
constructor
A new instance of HTTPInternalServerError.
Constructor Details
#initialize(code = nil, message = nil, ref = nil, http_status = nil) ⇒ HTTPInternalServerError
Returns a new instance of HTTPInternalServerError.
367 368 369 370 371 372 373 |
# File 'lib/Hpe3parSdk/exceptions.rb', line 367 def initialize(code = nil, =nil, ref =nil, http_status=nil) @http_status = 500 @message = 'Internal Server Error' super(code, .nil? ? @message : , ref, http_status.nil? ? @http_status : http_status) end |
Instance Attribute Details
#http_status ⇒ Object (readonly)
HTTP 500 - Internal Server Error: an internal error occured.
364 365 366 |
# File 'lib/Hpe3parSdk/exceptions.rb', line 364 def http_status @http_status end |
#message ⇒ Object (readonly)
HTTP 500 - Internal Server Error: an internal error occured.
364 365 366 |
# File 'lib/Hpe3parSdk/exceptions.rb', line 364 def @message end |