initial commit (migrated)
This commit is contained in:
commit
b594facb51
143 changed files with 11057 additions and 0 deletions
8
lib/core/error/reporter.dart
Normal file
8
lib/core/error/reporter.dart
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
import 'package:sentry_flutter/sentry_flutter.dart';
|
||||
|
||||
/// Report error to Sentry
|
||||
void reportError({required dynamic error, StackTrace? stackTrace}) {
|
||||
if (error == null) return;
|
||||
|
||||
Sentry.captureException(error, stackTrace: stackTrace);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue