feat(lang): added originalException and originalStack to BaseException

This commit is contained in:
vsavkin
2015-06-27 20:00:11 -07:00
parent ab3f2365fd
commit 56245c6aa2
2 changed files with 4 additions and 4 deletions

View File

@ -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 = (<any>new Error(message)).stack;
}