EventBusError constructor
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,
Implementation
EventBusError({
required this.kind,
required this.error,
this.source = EventBusErrorSource.core,
String? topic,
String? address,
this.event,
this.correlationId,
this.stackTrace,
this.context = const <String, String>{},
DateTime? timestamp,
}) : address = address ?? topic,
timestamp = timestamp ?? DateTime.now();