1
0
mirror of https://github.com/MisskeyIO/misskey synced 2024-12-19 00:58:54 +09:00
MisskeyIO/packages/backend/src/misc/identifiable-error.ts
2022-09-18 03:27:08 +09:00

14 lines
238 B
TypeScript

/**
* ID付きエラー
*/
export class IdentifiableError extends Error {
public message: string;
public id: string;
constructor(id: string, message?: string) {
super(message);
this.message = message ?? '';
this.id = id;
}
}