LocusError constructor

LocusError({
  1. required LocusErrorType type,
  2. required String message,
  3. Object? originalError,
  4. StackTrace? stackTrace,
  5. String? operation,
  6. bool isRecoverable = true,
  7. RecoveryAction? suggestedRecovery,
  8. JsonMap? details,
  9. DateTime? timestamp,
})

Creates a Locus error.

Implementation

LocusError({
  required this.type,
  required this.message,
  this.originalError,
  this.stackTrace,
  this.operation,
  this.isRecoverable = true,
  this.suggestedRecovery,
  this.details,
  DateTime? timestamp,
}) : timestamp = timestamp ?? DateTime.now();