Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(139)

Side by Side Diff: third_party/pkg/angular/lib/core/exception_handler.dart

Issue 257423008: Update all Angular libs (run update_all.sh). (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 part of angular.core; 1 part of angular.core_internal;
2 2
3 /** 3 /**
4 * Any uncaught exception in angular expressions is delegated to this service. 4 * Any uncaught exception in angular expressions is delegated to this service.
5 * The default implementation logs exceptions into console. 5 * The default implementation logs exceptions into console.
6 * 6 *
7 * In your application it is expected that this service is overridden with 7 * In your application it is expected that this service is overridden with
8 * your implementation which can store the exception for later processing. 8 * your implementation which can store the exception for later processing.
9 */ 9 */
10 @NgInjectableService() 10 @Injectable()
11 class ExceptionHandler { 11 class ExceptionHandler {
12 12
13 /** 13 /**
14 * Delegate uncaught exception for central error handling. 14 * Delegate uncaught exception for central error handling.
15 * 15 *
16 * - [error] The error which was caught. 16 * - [error] The error which was caught.
17 * - [stack] The stacktrace. 17 * - [stack] The stacktrace.
18 * - [reason] Optional contextual information for the error. 18 * - [reason] Optional contextual information for the error.
19 */ 19 */
20 call(dynamic error, dynamic stack, [String reason = '']) { 20 call(dynamic error, dynamic stack, [String reason = '']) {
21 print("$error\n$reason\nSTACKTRACE:\n$stack"); 21 print("$error\n$reason\nSTACKTRACE:\n$stack");
22 } 22 }
23 } 23 }
OLDNEW
« no previous file with comments | « third_party/pkg/angular/lib/core/directive.dart ('k') | third_party/pkg/angular/lib/core/filter.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698