unhandled_error_reporter 1.0.0
unhandled_error_reporter: ^1.0.0 copied to clipboard
Report Any unhandled exception/error/failure to backend service as [ stacktrace, Device information, Risk level of this error ].
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add unhandled_error_reporter
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
unhandled_error_reporter: ^1.0.0
Alternatively, your editor might support flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:unhandled_error_reporter/device_info.dart';
import 'package:unhandled_error_reporter/enums/platform.dart';
import 'package:unhandled_error_reporter/enums/risk_level_enum.dart';
import 'package:unhandled_error_reporter/error_capture.dart';
import 'package:unhandled_error_reporter/error_dto.dart';
import 'package:unhandled_error_reporter/main.dart';
import 'package:unhandled_error_reporter/remote_monitor.dart';
import 'package:unhandled_error_reporter/risk_level_determiner.dart';
import 'package:unhandled_error_reporter/thrown_api_error.dart';