nc-photos/app/lib/exception_event.dart

14 lines
245 B
Dart
Raw Normal View History

class ExceptionEvent {
const ExceptionEvent(
this.error, [
this.stackTrace,
]);
void throwMe() {
Error.throwWithStackTrace(error, stackTrace ?? StackTrace.current);
}
2022-05-16 14:01:52 +02:00
final Object error;
final StackTrace? stackTrace;
}