CheckedException<T> class
sealed
A class that defines 'predictable' failures occurring due to external factors.
It is primarily used as the Left type in Either<CheckedException, T> or
TaskEither
when using the fpdart package. This represents a business logic exception that
the caller must explicitly handle (via Catch or Map).
Use cases: Data validation failure, API response error, insufficient permissions, etc.
외부 요인으로 인해 발생하는 '예상 가능한' 실패를 정의하는 클래스입니다.
주로 fpdart 패키지를 사용할 때 Either<CheckedException, T> 또는
TaskEither의
Left 타입으로 활용됩니다. 이는 호출자가 명시적으로 처리(Catch or Map)해야 하는
비즈니스 로직상의 예외를 의미합니다.
사용 예: 데이터 검증 실패, API 응답 오류, 권한 부족 등.
- Implemented types
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- message → ({String english, String? locale})
-
Detailed description messages to be exposed to users or recorded in logs.
finalinherited
- prefix → String
-
A name prefix representing the identity of the exception.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- value → T
-
The raw data that directly caused the exception to occur.
finalinherited
Methods
-
createMessage(
{required String errorPrefix}) → String -
Generates a specific error message.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
Returns the standard string representation of the Exception.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited