export class HubCommandError extends Error { constructor( readonly code: string, message: string, readonly details?: string, ) { super(message); this.name = "HubCommandError"; } }