mirror of
https://github.com/misskey-dev/misskey
synced 2024-12-20 17:48:51 +09:00
987168b863
* wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip
14 lines
238 B
TypeScript
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;
|
|
}
|
|
}
|