Exception: Kabk::InvalidOldPasswordError
- Defined in:
- lib/kabk/errors.rb
Overview
Error raised when the current password provided during password change is incorrect (HTTP 422)
Instance Attribute Summary
Attributes inherited from ApiError
Instance Method Summary collapse
-
#initialize(message = "The current password provided is incorrect", fields: {}) ⇒ InvalidOldPasswordError
constructor
A new instance of InvalidOldPasswordError.
Methods inherited from ApiError
Constructor Details
#initialize(message = "The current password provided is incorrect", fields: {}) ⇒ InvalidOldPasswordError
Returns a new instance of InvalidOldPasswordError.
36 37 38 |
# File 'lib/kabk/errors.rb', line 36 def initialize( = "The current password provided is incorrect", fields: {}) super(, code: "INVALID_OLD_PASSWORD", http_status: 422, fields: fields) end |