NetworkError class final
네트워크 오류
인터넷 연결 문제, 타임아웃 등 일시적인 네트워크 문제. 재시도하면 성공할 수 있습니다.
if (failure case NetworkError()) {
showRetryButton();
}
- Inheritance
-
- Object
- KAuthFailure
- NetworkError
Constructors
- NetworkError({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
- isNetworkError → bool
-
네트워크 오류인지 확인
no setterinherited
- isPermanent → bool
-
영구적인 에러인지 확인
no setterinherited
- isProviderNotConfigured → bool
-
Provider 설정 오류인지 확인
no setterinherited
- isTemporary → bool
-
일시적인 에러인지 확인
no setterinherited
- isTimeout → bool
-
타임아웃 에러인지 확인
no setter
- 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