Exception: Hpe3parSdk::HTTPPreconditionFailed
- Inherits:
-
HPE3PARException
- Object
- StandardError
- HPE3PARException
- Hpe3parSdk::HTTPPreconditionFailed
- Defined in:
- lib/Hpe3parSdk/exceptions.rb
Instance Attribute Summary collapse
-
#http_status ⇒ Object
readonly
HTTP 412 - The server does not meet one of the preconditions that the requester put on the request.
-
#message ⇒ Object
readonly
HTTP 412 - The server does not meet one of the preconditions that the requester put on the request.
Attributes inherited from HPE3PARException
Instance Method Summary collapse
-
#initialize(code = nil, message = nil, ref = nil, http_status = nil) ⇒ HTTPPreconditionFailed
constructor
A new instance of HTTPPreconditionFailed.
Constructor Details
#initialize(code = nil, message = nil, ref = nil, http_status = nil) ⇒ HTTPPreconditionFailed
Returns a new instance of HTTPPreconditionFailed.
255 256 257 258 259 260 261 |
# File 'lib/Hpe3parSdk/exceptions.rb', line 255 def initialize(code = nil, =nil, ref =nil, http_status=nil) @http_status = 412 @message = 'Over limit' super(code, .nil? ? @message : , ref, http_status.nil? ? @http_status : http_status) end |
Instance Attribute Details
#http_status ⇒ Object (readonly)
HTTP 412 - The server does not meet one of the preconditions that the
requester put on the request.
252 253 254 |
# File 'lib/Hpe3parSdk/exceptions.rb', line 252 def http_status @http_status end |
#message ⇒ Object (readonly)
HTTP 412 - The server does not meet one of the preconditions that the
requester put on the request.
252 253 254 |
# File 'lib/Hpe3parSdk/exceptions.rb', line 252 def @message end |