Exception: Hpe3parSdk::HTTPUnauthorized
- Inherits:
-
HPE3PARException
- Object
- StandardError
- HPE3PARException
- Hpe3parSdk::HTTPUnauthorized
- Defined in:
- lib/Hpe3parSdk/exceptions.rb
Instance Attribute Summary collapse
-
#http_status ⇒ Object
readonly
Returns the value of attribute http_status.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
Attributes inherited from HPE3PARException
Instance Method Summary collapse
-
#initialize(code = nil, message = nil, ref = nil, http_status = nil) ⇒ HTTPUnauthorized
constructor
HTTP 401 - Unauthorized: bad credentials.
Constructor Details
#initialize(code = nil, message = nil, ref = nil, http_status = nil) ⇒ HTTPUnauthorized
HTTP 401 - Unauthorized: bad credentials.
100 101 102 103 104 105 106 |
# File 'lib/Hpe3parSdk/exceptions.rb', line 100 def initialize(code = nil, =nil, ref =nil, http_status=nil) @http_status = 401 @message ='Unauthorized' super(code, .nil? ? @message : , ref, http_status.nil? ? @http_status : http_status) end |
Instance Attribute Details
#http_status ⇒ Object (readonly)
Returns the value of attribute http_status.
97 98 99 |
# File 'lib/Hpe3parSdk/exceptions.rb', line 97 def http_status @http_status end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
97 98 99 |
# File 'lib/Hpe3parSdk/exceptions.rb', line 97 def @message end |