export type BurpaError = { host: string, closest: string } export class CBurpaError extends Error { host?: string; closest?: string; constructor(message: string, error: BurpaError) { super(message); this.host = error.host ?? undefined; this.closest = error.closest ?? undefined } }