Total Complexity | 2 |
Total Lines | 10 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | abstract class ApplicationError extends Error { |
||
2 | protected constructor(errorType: string, errorMessage: string) { |
||
3 | 7 | super(errorMessage); |
|
4 | 7 | this.name = errorType; |
|
5 | 7 | this.captureStackTrace(); |
|
6 | } |
||
7 | |||
8 | private captureStackTrace(): void { |
||
9 | 7 | if (Error.captureStackTrace) { |
|
10 | 7 | Error.captureStackTrace(this, this.constructor); |
|
11 | } |
||
32 |