mirror of
https://activitypub.software/TransFem-org/Sharkey.git
synced 2024-12-16 06:01:56 +01:00
13 lines
238 B
TypeScript
13 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;
|
|
}
|
|
}
|