export class QueryError extends Error { data: Record; description: any; metadata?: unknown; constructor(message: string | undefined, description: unknown, data: Record, metadata?: unknown) { super(message); this.name = this.constructor.name; this.data = data; this.description = description; this.metadata = metadata; } } export class OAuthUnauthorizedClientError extends Error { data: Record; description: any; constructor(message: string | undefined, description: any, data: Record) { super(message); this.name = this.constructor.name; this.data = data; this.description = description; } }