Exception: Hpe3parSdk::HTTPNotFound
- Inherits:
-
HPE3PARException
- Object
- StandardError
- HPE3PARException
- Hpe3parSdk::HTTPNotFound
- Defined in:
- lib/Hpe3parSdk/exceptions.rb
Instance Attribute Summary collapse
-
#http_status ⇒ Object
readonly
HTTP 404 - Not found.
-
#message ⇒ Object
readonly
HTTP 404 - Not found.
Attributes inherited from HPE3PARException
Instance Method Summary collapse
-
#initialize(code = nil, message = nil, ref = nil, http_status = nil) ⇒ HTTPNotFound
constructor
A new instance of HTTPNotFound.
Constructor Details
#initialize(code = nil, message = nil, ref = nil, http_status = nil) ⇒ HTTPNotFound
Returns a new instance of HTTPNotFound.
132 133 134 135 136 137 138 |
# File 'lib/Hpe3parSdk/exceptions.rb', line 132 def initialize(code = nil, =nil, ref =nil, http_status=nil) @http_status = 404 @message = 'Not found' super(code, .nil? ? @message : , ref, http_status.nil? ? @http_status : http_status) end |
Instance Attribute Details
#http_status ⇒ Object (readonly)
HTTP 404 - Not found
129 130 131 |
# File 'lib/Hpe3parSdk/exceptions.rb', line 129 def http_status @http_status end |
#message ⇒ Object (readonly)
HTTP 404 - Not found
129 130 131 |
# File 'lib/Hpe3parSdk/exceptions.rb', line 129 def @message end |