diff --git a/modules/angular2/src/facade/lang.dart b/modules/angular2/src/facade/lang.dart index 7229b3233d..ac0d31e6b2 100644 --- a/modules/angular2/src/facade/lang.dart +++ b/modules/angular2/src/facade/lang.dart @@ -176,8 +176,10 @@ class FunctionWrapper { class BaseException extends Error { final String message; + final originalException; + final originalStack; - BaseException([this.message]); + BaseException([this.message, this.originalException, this.originalStack]); String toString() { return this.message; diff --git a/modules/angular2/src/facade/lang.ts b/modules/angular2/src/facade/lang.ts index 6178ce9696..84c7b939ff 100644 --- a/modules/angular2/src/facade/lang.ts +++ b/modules/angular2/src/facade/lang.ts @@ -6,11 +6,9 @@ export var Type = Function; export type Type = new (...args: any[]) => any; export class BaseException extends Error { - message; stack; - constructor(message?: string) { + constructor(public message?: string, public originalException?, public originalStack?) { super(message); - this.message = message; this.stack = (new Error(message)).stack; }