push
github
611 of 668 branches covered (91.47%)
Branch coverage included in aggregate %.
25 of 26 new or added lines in 8 files covered. (96.15%)
47 existing lines in 3 files now uncovered.2218 of 2813 relevant lines covered (78.85%)
13.31 hits per line
1 |
import { AppError } from '@stuntman/shared'; |
1✔ |
2 |
import type * as Stuntman from '@stuntman/shared'; |
1✔ |
3 |
|
1✔ |
4 |
export enum HttpCode { |
|
5 |
OK = 200,
|
1✔ |
6 |
NO_CONTENT = 204,
|
1✔ |
7 |
BAD_REQUEST = 400,
|
1✔ |
8 |
UNAUTHORIZED = 401,
|
1✔ |
9 |
NOT_FOUND = 404,
|
1✔ |
10 |
CONFLICT = 409,
|
1✔ |
11 |
UNPROCESSABLE_ENTITY = 422,
|
1✔ |
12 |
INTERNAL_SERVER_ERROR = 500,
|
1✔ |
13 |
} |
1✔ |
14 |
|
1✔ |
15 |
export class ClientError extends AppError { |
|
UNCOV
16
|
public readonly originalStack?: string; |
× |
UNCOV
17
|
|
× |
UNCOV
18
|
constructor(args: Stuntman.AppError & { stack?: string }) {
|
× |
19 |
super(args); |
× |
20 |
if (args.stack) {
|
× |
21 |
this.originalStack = args.stack;
|
× |
22 |
} |
× |
23 |
} |
× |
UNCOV
24
|
} |
× |