TokenError class final

토큰 관련 오류

토큰 만료, 갱신 실패 등 재인증이 필요한 상태.

if (failure case TokenError()) {
  navigateToLogin();
}
Inheritance

Constructors

TokenError({String? code, String? message, String? hint})
const

Properties

canRetry bool
재시도 가능한 에러인지 확인
no setterinherited
code String?
에러 코드
finalinherited
displayMessage String
사용자에게 표시할 메시지
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
hint String?
해결 힌트
finalinherited
isCancelled bool
사용자가 로그인을 취소했는지 확인
no setterinherited
isConfigError bool
설정 오류인지 확인
no setterinherited
isExpired bool
토큰이 만료된 경우인지 확인
no setter
isNetworkError bool
네트워크 오류인지 확인
no setterinherited
isPermanent bool
영구적인 에러인지 확인
no setterinherited
isProviderNotConfigured bool
Provider 설정 오류인지 확인
no setterinherited
isRefreshFailed bool
갱신 실패인지 확인
no setter
isTemporary bool
일시적인 에러인지 확인
no setterinherited
isTokenError bool
토큰 관련 오류인지 확인
no setterinherited
isTokenExpired bool
토큰 만료인지 확인
no setterinherited
message String?
에러 메시지 (한글)
finalinherited
requiresReauth bool
재인증이 필요한지 확인
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
severity ErrorSeverity
에러 심각도
no setterinherited
shouldIgnore bool
무시해도 되는 에러인지 확인
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
JSON으로 변환
inherited
toString() String
A string representation of this object.
inherited

Operators

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