EventBusError class

One observable bus failure.

Errors are delivered as data through EventBus.errors, never as stream errors, so a listener without an onError does not turn every bus failure into an unhandled zone error. The payload is redacted by default: event is null unless payload capture is enabled.

Constructors

EventBusError({required EventBusErrorKind kind, required Object error, EventBusErrorSource source = EventBusErrorSource.core, String? topic, String? address, EventDTO? event, String? correlationId, StackTrace? stackTrace, Map<String, String> context = const <String, String>{}, DateTime? timestamp})

Properties

address → String?
The event address involved, when the error has one.
final
context → Map<String, String>
Small, redaction-safe labels (capacity, count, transport name, ...).
final
correlationId → String?
The correlation id of the event involved, when one was known.
final
error → Object
The underlying error.
final
event → EventDTO?
The event involved; null unless payload capture is enabled.
final
hashCode → int
The hash code for this object.
no setterinherited
kind → EventBusErrorKind
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
source → EventBusErrorSource
final
stackTrace → StackTrace?
final
timestamp → DateTime
final
topic → String?
The old name of address; both hold the same string.
no setter

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