Exception: Supabase::Auth::Errors::CustomAuthError
- Defined in:
- lib/supabase/auth/errors.rb
Overview
Intermediate class for custom auth errors with name and status.
Direct Known Subclasses
AuthImplicitGrantRedirectError, AuthInvalidCredentialsError, AuthInvalidJwtError, AuthRetryableError, AuthSessionMissing, AuthWeakPassword
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Attributes inherited from AuthError
Instance Method Summary collapse
-
#initialize(message, name:, status:, code: nil) ⇒ CustomAuthError
constructor
A new instance of CustomAuthError.
- #to_h ⇒ Object
Constructor Details
#initialize(message, name:, status:, code: nil) ⇒ CustomAuthError
Returns a new instance of CustomAuthError.
42 43 44 45 |
# File 'lib/supabase/auth/errors.rb', line 42 def initialize(, name:, status:, code: nil) super(, status: status, code: code) @name = name end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
40 41 42 |
# File 'lib/supabase/auth/errors.rb', line 40 def name @name end |
Instance Method Details
#to_h ⇒ Object
47 48 49 |
# File 'lib/supabase/auth/errors.rb', line 47 def to_h { name: @name, message: , status: @status, code: @code } end |