@comake/skl-js-engine
Version:
Standard Knowledge Language Javascript Engine
40 lines • 1.07 kB
TypeScript
/**
* Custom error classes for better error handling in JSExecutor
*/
/**
* Error thrown when code execution times out
*/
export declare class ExecutionTimeoutError extends Error {
constructor(timeout: number);
}
/**
* Error thrown when the Deno process fails to spawn
*/
export declare class ProcessSpawnError extends Error {
constructor(originalError: Error);
}
/**
* Error thrown when the executor output cannot be parsed
*/
export declare class OutputParsingError extends Error {
constructor(rawOutput: string, originalError: Error);
}
/**
* Error thrown when code execution fails in general
*/
export declare class CodeExecutionError extends Error {
constructor(message: string);
}
/**
* Error thrown when the JSExecutor is not initialized
*/
export declare class NotInitializedError extends Error {
constructor(message: string);
}
/**
* Error thrown when the JSExecutor is already initialized
*/
export declare class AlreadyInitializedError extends Error {
constructor(message: string);
}
//# sourceMappingURL=errors.d.ts.map