This commit is contained in:
atanasovg
2016-03-03 18:03:27 +02:00
parent 857b5582b0
commit 66936ff0c4
3 changed files with 16 additions and 4 deletions

View File

@@ -47,11 +47,12 @@ export class Source {
}
}
export class ScopeError implements Error {
export class ScopeError extends Error {
private _child: Error;
private _message: string;
constructor(child: Error, message?: string) {
constructor(child: Error, message?: string) {
super(message);
if (!child) {
throw new Error("Required child error!");
}