mirror of
https://github.com/laurent22/joplin.git
synced 2024-11-30 08:26:59 +02:00
15 lines
450 B
TypeScript
15 lines
450 B
TypeScript
export default class JoplinError extends Error {
|
|
|
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- Old code before rule was applied
|
|
public code: any = null;
|
|
public details = '';
|
|
|
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- Old code before rule was applied
|
|
public constructor(message: string, code: any = null, details: string = null) {
|
|
super(message);
|
|
this.code = code;
|
|
this.details = details;
|
|
}
|
|
|
|
}
|