mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-22 16:38:21 +00:00
13 lines
304 B
TypeScript
13 lines
304 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);
|
||
|
|
}
|
||
|
|
}
|