AppError class

A normalized error with a human-readable message and an optional recovery hint. Built from any thrown object via AppError.from.

Implemented types

Constructors

AppError(AppErrorKind kind, String message, {String? hint, Object? cause})
Creates an app error.
const
AppError.from(Object error)
Classifies an arbitrary thrown error into an AppError.
factory

Properties

cause Object?
The original thrown object, kept for logging/diagnostics.
final
hashCode int
The hash code for this object.
no setterinherited
hint String?
An optional next-step suggestion shown beneath the message.
final
kind AppErrorKind
The category of failure.
final
message String
A concise, user-facing description.
final
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.
override

Operators

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