TaskExecutionException class

An exception thrown when a background task fails during execution.

This exception is used to wrap errors occurring inside an isolate task. It provides a message, the original error, and the associated stack trace.

Implemented types

Constructors

TaskExecutionException(String message, [Object? cause, StackTrace? stackTrace])
Creates a TaskExecutionException with a message, an optional cause, and an optional stack trace.

Properties

cause → Object?
The underlying cause of the exception, if available.
final
hashCode → int
The hash code for this object.
no setterinherited
message → String
A descriptive error message explaining the reason for the exception.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
stackTrace → StackTrace?
The stack trace at the moment the exception was thrown, if available.
final

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