import { Message } from '@node-ts/bus-messages' ; import { ClassConstructor } from '../../util' ; export class WorkflowAlreadyHandlesMessage extends Error { constructor ( readonly workflowName , readonly messageType ) { super ( `Attempted to re-register the same message handler for a workflow` ) ; Object . setPrototypeOf ( this , new . target . prototype ) ; } }