BaseException constructor
BaseException({})
Creates a base exception with immutable metadata and derived stack trace.
Implementation
BaseException({
required this.userMessage,
required this.devMessage,
this.cause,
StackTrace? stack,
Map<String, dynamic> metadata = const {},
this.severity = Severity.error,
this.isReportable = true,
}) : stack = stack ?? StackTrace.current,
metadata = UnmodifiableMapView(Map<String, dynamic>.from(metadata));