ErrorSeverity enum

에러 심각도

UI에서 에러 유형에 따라 다른 처리를 할 때 사용합니다.

switch (failure.severity) {
  case ErrorSeverity.ignorable:
    return; // 무시
  case ErrorSeverity.retryable:
    showRetryDialog();
  case ErrorSeverity.authRequired:
    navigateToLogin();
  case ErrorSeverity.fixRequired:
    showErrorDialog(failure.message);
}
Inheritance
Available extensions

Values

ignorable → const ErrorSeverity

무시 가능 (사용자 취소 등)

retryable → const ErrorSeverity

재시도 가능 (네트워크 오류, 타임아웃 등)

authRequired → const ErrorSeverity

재인증 필요 (토큰 만료 등)

fixRequired → const ErrorSeverity

수정 필요 (설정 오류 등)

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
name String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

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

Operators

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

Constants

values → const List<ErrorSeverity>
A constant List of the values in this enum, in order of their declaration.