2021-05-13 18:57:37 +02:00
|
|
|
export default class JoplinError extends Error {
|
|
|
|
|
2024-04-05 12:16:49 +01:00
|
|
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- Old code before rule was applied
|
2021-05-13 18:57:37 +02:00
|
|
|
public code: any = null;
|
2023-06-30 09:07:03 +01:00
|
|
|
public details = '';
|
2021-05-13 18:57:37 +02:00
|
|
|
|
2024-04-05 12:16:49 +01:00
|
|
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- Old code before rule was applied
|
2021-05-13 18:57:37 +02:00
|
|
|
public constructor(message: string, code: any = null, details: string = null) {
|
|
|
|
super(message);
|
|
|
|
this.code = code;
|
|
|
|
this.details = details;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|