1 | import { StrykerError } from '@stryker-mutator/util';
|
2 |
|
3 | export class ChildProcessCrashedError extends StrykerError {
|
4 | constructor(
|
5 | public readonly pid: number | undefined,
|
6 | message: string,
|
7 | public readonly exitCode?: number,
|
8 | public readonly signal?: string,
|
9 | innerError?: Error
|
10 | ) {
|
11 | super(message, innerError);
|
12 | Error.captureStackTrace(this, ChildProcessCrashedError);
|
13 | // TS recommendation: https://github.com/Microsoft/TypeScript/wiki/Breaking-Changes#extending-built-ins-like-error-array-and-map-may-no-longer-work
|
14 | Object.setPrototypeOf(this, ChildProcessCrashedError.prototype);
|
15 | }
|
16 | }
|