You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -82,7 +88,7 @@ Native exceptions and crashes are reported automatically.
82
88
83
89
You can easily track handled errors using the following code:
84
90
85
-
```
91
+
```as3
86
92
try
87
93
{
88
94
@@ -95,33 +101,33 @@ catch(e:Error)
95
101
96
102
You can also pass in a severity value to the method:
97
103
98
-
```
104
+
```as3
99
105
Bugsnag.notifyError(new Error(), Severity.WARN);
100
106
```
101
107
102
108
### Track Manual Errors
103
109
104
110
You aren't limited to tracking only ```Error``` objects. You can send a generic error:
105
111
106
-
```
112
+
```as3
107
113
Bugsnag.notify("Big Error", "A really big error has occurred");
108
114
```
109
115
110
116
You can also add a severity to it:
111
117
112
-
```
118
+
```as3
113
119
Bugsnag.notify("Big Error", "A really big error has occurred", Severity.INFO);
114
120
```
115
121
116
122
It may be helpful to provide a stacktrace of where the error occurred:
117
123
118
-
```
124
+
```as3
119
125
Bugsnag.notify("Big Error", "A really big error has occurred", Severity.INFO, new Error().getStackTrace());
120
126
```
121
127
122
128
You can also provide additional metadata for errors that will show up in a custom tab on the Bugsnag dashboard. Each metadata object will display as a new tab.
123
129
124
-
```
130
+
```as3
125
131
var metadata:Metadata = new Metadata("Error Details");
126
132
metadata.addAttribute("Description", "Something went really wrong");
127
133
@@ -134,7 +140,7 @@ Bugsnag.notify("Big Error", "A really big error has occurred", Serverity.INFO, n
134
140
135
141
You can set custom data for users to track their errors:
0 commit comments