Exception: Hpe3parSdk::HTTPForbidden
- Inherits:
-
HPE3PARException
- Object
- StandardError
- HPE3PARException
- Hpe3parSdk::HTTPForbidden
- Defined in:
- lib/Hpe3parSdk/exceptions.rb
Instance Attribute Summary collapse
-
#http_status ⇒ Object
readonly
HTTP 403 - Forbidden: your credentials don’t give you access to this resource.
-
#message ⇒ Object
readonly
HTTP 403 - Forbidden: your credentials don’t give you access to this resource.
Attributes inherited from HPE3PARException
Instance Method Summary collapse
-
#initialize(code = nil, message = nil, ref = nil, http_status = nil) ⇒ HTTPForbidden
constructor
A new instance of HTTPForbidden.
Constructor Details
#initialize(code = nil, message = nil, ref = nil, http_status = nil) ⇒ HTTPForbidden
Returns a new instance of HTTPForbidden.
117 118 119 120 121 122 123 |
# File 'lib/Hpe3parSdk/exceptions.rb', line 117 def initialize(code = nil, =nil, ref =nil, http_status=nil) @http_status = 403 @message = 'Forbidden' super(code, .nil? ? @message : , ref, http_status.nil? ? @http_status : http_status) end |
Instance Attribute Details
#http_status ⇒ Object (readonly)
HTTP 403 - Forbidden: your credentials don’t give you access to this resource.
114 115 116 |
# File 'lib/Hpe3parSdk/exceptions.rb', line 114 def http_status @http_status end |
#message ⇒ Object (readonly)
HTTP 403 - Forbidden: your credentials don’t give you access to this resource.
114 115 116 |
# File 'lib/Hpe3parSdk/exceptions.rb', line 114 def @message end |