export class ProcedureError extends Error { constructor( message: string, public code?: string, public context?: Record ) { super(message); this.name = 'ProcedureError'; Error.captureStackTrace?.(this, ProcedureError); } }