mirror of
https://github.com/ToolJet/ToolJet
synced 2026-04-21 21:47:17 +00:00
27 lines
787 B
TypeScript
27 lines
787 B
TypeScript
export class QueryError extends Error {
|
|
data: Record<string, unknown>;
|
|
description: any;
|
|
metadata?: unknown;
|
|
constructor(message: string | undefined, description: unknown, data: Record<string, unknown>, metadata?: unknown) {
|
|
super(message);
|
|
this.name = this.constructor.name;
|
|
this.data = data;
|
|
this.description = description;
|
|
this.metadata = metadata;
|
|
|
|
console.log(this.description);
|
|
}
|
|
}
|
|
|
|
export class OAuthUnauthorizedClientError extends Error {
|
|
data: Record<string, unknown>;
|
|
description: any;
|
|
constructor(message: string | undefined, description: any, data: Record<string, unknown>) {
|
|
super(message);
|
|
this.name = this.constructor.name;
|
|
this.data = data;
|
|
this.description = description;
|
|
|
|
console.log(this.description);
|
|
}
|
|
}
|