mirror of
https://iceshrimp.dev/iceshrimp/iceshrimp
synced 2024-12-28 05:28:07 +09:00
8d94a6a8df
* 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;
|
|
}
|
|
}
|