Exception: Hpe3parSdk::HTTPMethodNotAllowed
- Inherits:
-
HPE3PARException
- Object
- StandardError
- HPE3PARException
- Hpe3parSdk::HTTPMethodNotAllowed
- Defined in:
- lib/Hpe3parSdk/exceptions.rb
Instance Attribute Summary collapse
-
#http_status ⇒ Object
readonly
HTTP 405 - Method not Allowed.
-
#message ⇒ Object
readonly
HTTP 405 - Method not Allowed.
Attributes inherited from HPE3PARException
Instance Method Summary collapse
-
#initialize(code = nil, message = nil, ref = nil, http_status = nil) ⇒ HTTPMethodNotAllowed
constructor
A new instance of HTTPMethodNotAllowed.
Constructor Details
#initialize(code = nil, message = nil, ref = nil, http_status = nil) ⇒ HTTPMethodNotAllowed
Returns a new instance of HTTPMethodNotAllowed.
147 148 149 150 151 152 153 |
# File 'lib/Hpe3parSdk/exceptions.rb', line 147 def initialize(code = nil, =nil, ref =nil, http_status=nil) @http_status = 405 @message = 'Method Not Allowed' super(code, .nil? ? @message : , ref, http_status.nil? ? @http_status : http_status) end |
Instance Attribute Details
#http_status ⇒ Object (readonly)
HTTP 405 - Method not Allowed
144 145 146 |
# File 'lib/Hpe3parSdk/exceptions.rb', line 144 def http_status @http_status end |
#message ⇒ Object (readonly)
HTTP 405 - Method not Allowed
144 145 146 |
# File 'lib/Hpe3parSdk/exceptions.rb', line 144 def @message end |