Skip to content
This repository was archived by the owner on May 8, 2020. It is now read-only.

Commit db1c8a1

Browse files
committed
Merge master
2 parents ae00da5 + 16a03c0 commit db1c8a1

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

src/core/Exception.ts

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export class Exception implements Error {
1+
export class Exception extends Error {
22
/**
33
* Exception base name
44
* @type {string}
@@ -30,13 +30,7 @@ export class Exception implements Error {
3030
* @param innerException
3131
*/
3232
constructor(status: any, message?: string, innerException?: any) {
33-
34-
Error.apply(this, arguments);
35-
36-
if (typeof Error.captureStackTrace === "function") {
37-
//noinspection JSUnresolvedFunction
38-
Error.captureStackTrace(this, (<any>this).contructor);
39-
}
33+
super(message);
4034

4135
this.status = status;
4236
this.message = message || "";

0 commit comments

Comments
 (0)