Exception: Supabase::Auth::Errors::AuthWeakPassword
- Inherits:
-
CustomAuthError
- Object
- StandardError
- AuthError
- CustomAuthError
- Supabase::Auth::Errors::AuthWeakPassword
- Defined in:
- lib/supabase/auth/errors.rb
Overview
Raised when a password does not meet strength requirements.
Instance Attribute Summary collapse
-
#reasons ⇒ Object
readonly
Returns the value of attribute reasons.
Attributes inherited from CustomAuthError
Attributes inherited from AuthError
Instance Method Summary collapse
-
#initialize(message, status: 422, reasons: []) ⇒ AuthWeakPassword
constructor
A new instance of AuthWeakPassword.
- #to_h ⇒ Object
Constructor Details
#initialize(message, status: 422, reasons: []) ⇒ AuthWeakPassword
Returns a new instance of AuthWeakPassword.
91 92 93 94 |
# File 'lib/supabase/auth/errors.rb', line 91 def initialize(, status: 422, reasons: []) super(, name: "AuthWeakPasswordError", status: status, code: "weak_password") @reasons = reasons end |
Instance Attribute Details
#reasons ⇒ Object (readonly)
Returns the value of attribute reasons.
89 90 91 |
# File 'lib/supabase/auth/errors.rb', line 89 def reasons @reasons end |
Instance Method Details
#to_h ⇒ Object
96 97 98 |
# File 'lib/supabase/auth/errors.rb', line 96 def to_h { name: @name, message: , status: @status, code: @code, reasons: @reasons } end |