File tree 5 files changed +5
-5
lines changed
includes/dart-integrations
platform-includes/capture-error
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
78
78
import 'package:sentry/sentry.dart';
79
79
80
80
try {
81
- throw Exception ('Sentry Test Error');
81
+ throw StateError ('Sentry Test Error');
82
82
} catch (exception, stackTrace) {
83
83
await Sentry.captureException(
84
84
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
144
144
import 'package:sentry/sentry.dart';
145
145
146
146
try {
147
- throw Exception ('Sentry Test Exception');
147
+ throw StateError ('Sentry Test Exception');
148
148
} catch (exception, stackTrace) {
149
149
await Sentry.captureException(
150
150
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
110
110
import 'package:sentry/sentry.dart';
111
111
112
112
try {
113
- throw Exception ('Sentry Test Exception');
113
+ throw StateError ('Sentry Test Exception');
114
114
} catch (exception, stackTrace) {
115
115
await Sentry.captureException(
116
116
exception,
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ void main() async {
57
57
log.info('a breadcrumb!');
58
58
59
59
try {
60
- throw Exception ();
60
+ throw StateError ();
61
61
} catch (error, stackTrace) {
62
62
log.severe('an error!', error, stackTrace);
63
63
}
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:
4
4
import 'package:sentry/sentry.dart';
5
5
6
6
try {
7
- throw Exception ('Sentry Test Exception');
7
+ throw StateError ('Sentry Test Exception');
8
8
} catch (exception, stackTrace) {
9
9
await Sentry.captureException(
10
10
exception,
You can’t perform that action at this time.
0 commit comments