AuthException class

Authentication-specific exception

Inheritance

Constructors

AuthException(String message, {String? code, int? statusCode, Map<String, dynamic>? body, Map<String, dynamic>? user})
const
AuthException.emailAlreadyExists([String? message])
factory
AuthException.emailNotConfirmed([String? message])
factory
AuthException.forbidden([String? message])
factory
AuthException.fromException(dynamic error)
factory
AuthException.invalidCredentials([String? message])
factory
AuthException.invalidToken([String? message])
factory
AuthException.signinDisabled([String? message])
factory
AuthException.signupDisabled([String? message])
factory
AuthException.timeout([String? message])
factory
AuthException.tokenExpired([String? message])
factory
AuthException.unauthorized([String? message])
factory
AuthException.userNotFound([String? message])
factory
AuthException.weakPassword([String? message])
factory

Properties

body → Map<String, dynamic>?
Parsed JSON error body, with any structured fields the API sent (e.g. QUOTA_EXCEEDED's quota/plan/limit/usage).
finalinherited
buyUrl → String?
402 CREDITS_EXHAUSTED: where to buy more credit, when given.
no setterinherited
code → String?
finalinherited
creditsReason → String?
balance (no credit left) or spend_cap (the monthly cap is reached), for CREDITS_EXHAUSTED.
no setterinherited
hashCode → int
The hash code for this object.
no setterinherited
isAccountLocked → bool
Too many wrong passwords: the email is locked for the project's lockout duration (429 ACCOUNT_LOCKED).
no setter
isCreditsExhausted → bool
402 CREDITS_EXHAUSTED: the workspace's prepaid AI credit cannot pay for this call (see creditsReason). Offer buyUrl or adding your own provider key; don't retry.
no setterinherited
isOtpRateLimited → bool
Too many wrong codes: codes are invalidated for a while (429 OTP_RATE_LIMITED).
no setter
isOtpRequestLimited → bool
Too many codes requested for this email in the last hour (429 OTP_REQUEST_LIMIT).
no setter
isProjectPaused → bool
423: the project is paused (plan limit or owner) or compromised (kill switch). Nothing was deleted; calls work again once it is resumed.
no setterinherited
isTooManyAttempts → bool
Any rate limit or lockout (HTTP 429): show "Too many attempts, try again later".
no setter
message → String
finalinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
statusCode → int?
finalinherited
upgradeUrl → String?
402 QUOTA_EXCEEDED: where to send the user to upgrade, when given.
no setterinherited
user → Map<String, dynamic>?
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited