mirror of
https://github.com/ToolJet/ToolJet
synced 2026-04-27 16:37:42 +00:00
* implement google sheet oauh token refresh flow * format lint * make use of constructor name as instanceof fails * remove unused import * force consent to get refresh token on googlesheets ds
25 lines
627 B
TypeScript
25 lines
627 B
TypeScript
export class QueryError extends Error {
|
|
data: {};
|
|
description: any;
|
|
constructor(message: string | undefined, description: any, data: {}) {
|
|
super(message);
|
|
this.name = this.constructor.name;
|
|
this.data = data;
|
|
this.description = description;
|
|
|
|
console.log(this.description);
|
|
}
|
|
}
|
|
|
|
export class OAuthUnauthorizedClientError extends Error {
|
|
data: {};
|
|
description: any;
|
|
constructor(message: string | undefined, description: any, data: {}) {
|
|
super(message);
|
|
this.name = this.constructor.name;
|
|
this.data = data;
|
|
this.description = description;
|
|
|
|
console.log(this.description);
|
|
}
|
|
}
|