mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-24 13:09:07 +01:00
14 lines
232 B
TypeScript
14 lines
232 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;
|
||
|
}
|
||
|
}
|