mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-02 10:57:20 +00:00
26 lines
711 B
TypeScript
26 lines
711 B
TypeScript
|
|
export class QueryError 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);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
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);
|
||
|
|
}
|
||
|
|
}
|