Exception: Hpe3parSdk::HTTPGone
- Inherits:
-
HPE3PARException
- Object
- StandardError
- HPE3PARException
- Hpe3parSdk::HTTPGone
- Defined in:
- lib/Hpe3parSdk/exceptions.rb
Instance Attribute Summary collapse
-
#http_status ⇒ Object
readonly
HTTP 410 - Indicates that the resource requested is no longer available and will not be available again.
-
#message ⇒ Object
readonly
HTTP 410 - Indicates that the resource requested is no longer available and will not be available again.
Attributes inherited from HPE3PARException
Instance Method Summary collapse
-
#initialize(code = nil, message = nil, ref = nil, http_status = nil) ⇒ HTTPGone
constructor
A new instance of HTTPGone.
Constructor Details
#initialize(code = nil, message = nil, ref = nil, http_status = nil) ⇒ HTTPGone
Returns a new instance of HTTPGone.
223 224 225 226 227 228 229 |
# File 'lib/Hpe3parSdk/exceptions.rb', line 223 def initialize(code = nil, =nil, ref =nil, http_status=nil) @http_status = 410 @message = 'Gone' super(code, .nil? ? @message : , ref, http_status.nil? ? @http_status : http_status) end |
Instance Attribute Details
#http_status ⇒ Object (readonly)
HTTP 410 - Indicates that the resource requested is no longer available and
will not be available again.
220 221 222 |
# File 'lib/Hpe3parSdk/exceptions.rb', line 220 def http_status @http_status end |
#message ⇒ Object (readonly)
HTTP 410 - Indicates that the resource requested is no longer available and
will not be available again.
220 221 222 |
# File 'lib/Hpe3parSdk/exceptions.rb', line 220 def @message end |