WorkerException class

Exception to keep track of errors encountered in a worker.

Inheritance
Implementers

Constructors

WorkerException(String message, {StackTrace? stackTrace, String? workerId, int? command})
Creates a new WorkerException to capture error context.

Properties

command int?
Command.
no setter
hashCode int
The hash code for this object.
no setterinherited
message String
Message.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stackTrace StackTrace?
Stack trace associated to the original exception.
no setteroverride
workerId String?
Worker ID.
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
serialize() List
Serializes the exception, i.e. returns a list of items that can cross thread boundaries.
override
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

deserialize(List data) WorkerException?
Deserializes a List that was produced by serialize.
override