import { Executor } from "./Executor"; import { FnBox } from "./FnBox"; export class UnsupportedMethodExecutor extends Executor { constructor(private readonly reason: string) { super(); } override execute(functions: FnBox[]): Promise { throw new Error( `${functions[0].name} must not be executed through the MultiExecutor: ${this.reason}` ); } }