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
Copy file name to clipboardExpand all lines: README.md
+2-18Lines changed: 2 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -80,23 +80,7 @@ errorHandler.start({
80
80
81
81
Unhandled exception will now automatically be reported to Stackdriver Error Reporting.
82
82
83
-
You can change your code to report errors:
84
-
85
-
When catching an exception:
86
-
87
-
```JS
88
-
try {
89
-
doSomethingRisky();
90
-
} catch (e) {
91
-
errorHandler.report(e);
92
-
}
93
-
```
94
-
95
-
or anytime:
96
-
97
-
```JS
98
-
errorHandler.report('Something broke!');
99
-
```
83
+
You can also change your application code to report errors: `try { ... } catch(e) { errorHandler.report(e); }` or simply `errorHandler.report('Something broke!');`.
100
84
101
85
### Source maps
102
86
@@ -139,7 +123,7 @@ angular.module('yourApp', [])
139
123
140
124
Uncaught exception in angular expressions will be reported to Stackdriver Error Reporting using this service.
141
125
142
-
If you wish, you can manually delegate exceptions, e.g. `try { ... } catch(e) { $exceptionHandler(e); }` or simply `$exceptionHandler(e);`.
126
+
If you wish, you can manually delegate exceptions, e.g. `try { ... } catch(e) { $exceptionHandler(e); }` or simply `$exceptionHandler('Something broke!');`.
0 commit comments