File size: 660 Bytes
aec3094 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | import type { TestCaseExecutionErrorCode, TestRunErrorCode } from '@n8n/db';
import { UnexpectedError } from 'n8n-workflow';
export class TestCaseExecutionError extends UnexpectedError {
readonly code: TestCaseExecutionErrorCode;
constructor(code: TestCaseExecutionErrorCode, extra: Record<string, unknown> = {}) {
super('Test Case execution failed with code ' + code, { extra });
this.code = code;
}
}
export class TestRunError extends UnexpectedError {
readonly code: TestRunErrorCode;
constructor(code: TestRunErrorCode, extra: Record<string, unknown> = {}) {
super('Test Run failed with code ' + code, { extra });
this.code = code;
}
}
|