feat(ql3): establish 3.0 incubation baseline

This commit is contained in:
whyour
2026-08-12 00:25:26 +08:00
parent 4bf92dcfeb
commit c699c32461
2817 changed files with 779642 additions and 653 deletions
+50
View File
@@ -0,0 +1,50 @@
export class ExecutorError extends Error {
constructor(
message: string,
public readonly code: string,
public readonly cause?: unknown,
) {
super(message);
this.name = new.target.name;
}
}
export class InvalidExecutionSpecError extends ExecutorError {
constructor(message: string) {
super(message, 'INVALID_EXECUTION_SPEC');
}
}
export class ExecutorCapabilityUnavailableError extends ExecutorError {
constructor(public readonly capability: string) {
super(
`Required executor capability is unavailable: ${capability}`,
'EXECUTOR_CAPABILITY_UNAVAILABLE',
);
}
}
export class ExecutorStartError extends ExecutorError {
constructor(cause?: unknown) {
super(
'Executor failed to start the process',
'EXECUTOR_START_FAILED',
cause,
);
}
}
export class ExecutorHandleNotFoundError extends ExecutorError {
constructor(public readonly handleId: string) {
super(
'Execution handle is not owned by this executor instance',
'EXECUTOR_HANDLE_NOT_FOUND',
);
}
}
export class ExecutorStopError extends ExecutorError {
constructor(cause?: unknown) {
super('Executor failed to stop the process', 'EXECUTOR_STOP_FAILED', cause);
}
}