export type GoalRuntimeErrorCode = | 'GOAL_CONFLICT' | 'GOAL_NOT_FOUND' | 'GOAL_REVISION_CONFLICT' | 'GOAL_INVALID_TRANSITION' | 'GOAL_ACCEPTOR_REQUIRED' | 'GOAL_ATTEMPT_CONFLICT' | 'GOAL_STORE_LOCKED'; export class GoalRuntimeError extends Error { constructor( readonly code: GoalRuntimeErrorCode, message: string, ) { super(message); this.name = 'GoalRuntimeError'; } }