LocusError constructor
- required LocusErrorType type,
- required String message,
- Object? originalError,
- StackTrace? stackTrace,
- String? operation,
- bool isRecoverable = true,
- RecoveryAction? suggestedRecovery,
- JsonMap? details,
- 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();