Exception: Supabase::Auth::Errors::AuthError
- Inherits:
-
StandardError
- Object
- StandardError
- Supabase::Auth::Errors::AuthError
- Defined in:
- lib/supabase/auth/errors.rb
Overview
Base error class for all Supabase Auth errors.
Direct Known Subclasses
AuthApiError, AuthPKCEError, AuthUnknownError, CustomAuthError
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(message, status: nil, code: nil) ⇒ AuthError
constructor
A new instance of AuthError.
- #to_h ⇒ Object
Constructor Details
#initialize(message, status: nil, code: nil) ⇒ AuthError
Returns a new instance of AuthError.
10 11 12 13 14 |
# File 'lib/supabase/auth/errors.rb', line 10 def initialize(, status: nil, code: nil) super() @status = status @code = code end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
8 9 10 |
# File 'lib/supabase/auth/errors.rb', line 8 def code @code end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
8 9 10 |
# File 'lib/supabase/auth/errors.rb', line 8 def status @status end |
Instance Method Details
#to_h ⇒ Object
16 17 18 |
# File 'lib/supabase/auth/errors.rb', line 16 def to_h { message: , status: @status, code: @code } end |