2022-01-17 07:08:17 +00:00
|
|
|
export class QueryError extends Error {
|
2022-03-10 06:59:48 +00:00
|
|
|
data: Record<string, unknown>;
|
2022-01-17 07:08:17 +00:00
|
|
|
description: any;
|
2022-03-10 06:59:48 +00:00
|
|
|
constructor(message: string | undefined, description: any, data: Record<string, unknown>) {
|
2022-01-17 07:08:17 +00:00
|
|
|
super(message);
|
|
|
|
|
this.name = this.constructor.name;
|
|
|
|
|
this.data = data;
|
|
|
|
|
this.description = description;
|
|
|
|
|
|
|
|
|
|
console.log(this.description);
|
|
|
|
|
}
|
|
|
|
|
}
|
2022-02-05 01:39:40 +00:00
|
|
|
|
|
|
|
|
export class OAuthUnauthorizedClientError extends Error {
|
2022-03-10 06:59:48 +00:00
|
|
|
data: Record<string, unknown>;
|
2022-02-05 01:39:40 +00:00
|
|
|
description: any;
|
2022-03-10 06:59:48 +00:00
|
|
|
constructor(message: string | undefined, description: any, data: Record<string, unknown>) {
|
2022-02-05 01:39:40 +00:00
|
|
|
super(message);
|
|
|
|
|
this.name = this.constructor.name;
|
|
|
|
|
this.data = data;
|
|
|
|
|
this.description = description;
|
|
|
|
|
|
|
|
|
|
console.log(this.description);
|
|
|
|
|
}
|
|
|
|
|
}
|