mirror of
https://github.com/ToolJet/ToolJet
synced 2026-04-23 22:47:28 +00:00
* merge develop * Add eslint dependencies, configs and scripts to plugins project * run lint with Github action * ignore tests and dist folders * fun eslint with --fix and manual fixes, renamed __tests_ to __tests__ * add plugins packages folder to lint-staged config * fix lint issue
25 lines
711 B
TypeScript
25 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);
|
|
}
|
|
}
|