UncheckedError<T> class
sealed
Defines 'unexpected' errors occurring due to programmer mistakes or fatal system failures.
According to Dart's philosophy, an Error is not intended to be caught and recovered from,
but rather represents an issue that should be resolved by fixing the code.
Therefore, this class is used for throwing outside of the fpdart flow or
for terminating the process when logical invariants are broken.
Use cases: Invalid argument passing, Null safety violations, state contradictions, etc.
프로그래머의 실수나 시스템의 치명적 결함으로 발생하는 '예상치 못한' 오류를 정의합니다.
Dart의 철학에 따라 Error는 catch하여 복구하는 것이 아니라, 코드를 수정하여
해결해야 하는 대상을 의미합니다. 따라서 이 클래스는 fpdart 흐름 밖에서 throw되거나,
로직상의 불변성이 깨졌을 때 프로세스를 중단시키는 목적으로 사용합니다.
사용 예: 잘못된 아규먼트 전달, Null 안정성 위반, 상태 모순 등.
- 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
- stackTrace → StackTrace?
-
The call stack information at the point where the error occurred.
final
- 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
Error.override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited