EventBusError constructor

EventBusError({
  1. required EventBusErrorKind kind,
  2. required Object error,
  3. EventBusErrorSource source = EventBusErrorSource.core,
  4. String? topic,
  5. String? address,
  6. EventDTO? event,
  7. String? correlationId,
  8. StackTrace? stackTrace,
  9. Map<String, String> context = const <String, String>{},
  10. 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();