File tree Expand file tree Collapse file tree 5 files changed +5
-5
lines changed
includes/dart-integrations
platform-includes/capture-error Expand file tree Collapse file tree 5 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ Verify that your app is sending events to Sentry by adding the following snippet
7878import 'package:sentry/sentry.dart';
7979
8080try {
81- throw Exception ('Sentry Test Error');
81+ throw StateError ('Sentry Test Error');
8282} catch (exception, stackTrace) {
8383 await Sentry.captureException(
8484 exception,
Original file line number Diff line number Diff line change @@ -144,7 +144,7 @@ Verify that your app is sending events to Sentry by adding the following snippet
144144import 'package:sentry/sentry.dart';
145145
146146try {
147- throw Exception ('Sentry Test Exception');
147+ throw StateError ('Sentry Test Exception');
148148} catch (exception, stackTrace) {
149149 await Sentry.captureException(
150150 exception,
Original file line number Diff line number Diff line change @@ -110,7 +110,7 @@ Verify that your app is sending events to Sentry by adding the following snippet
110110import 'package:sentry/sentry.dart';
111111
112112try {
113- throw Exception ('Sentry Test Exception');
113+ throw StateError ('Sentry Test Exception');
114114} catch (exception, stackTrace) {
115115 await Sentry.captureException(
116116 exception,
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ void main() async {
5757 log.info('a breadcrumb!');
5858
5959 try {
60- throw Exception ();
60+ throw StateError ();
6161 } catch (error, stackTrace) {
6262 log.severe('an error!', error, stackTrace);
6363 }
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ In Dart you can capture any exception object that you caught:
44import 'package:sentry/sentry.dart';
55
66try {
7- throw Exception ('Sentry Test Exception');
7+ throw StateError ('Sentry Test Exception');
88} catch (exception, stackTrace) {
99 await Sentry.captureException(
1010 exception,
You can’t perform that action at this time.
0 commit comments