1
0
mirror of https://github.com/hotomoe/hotomoe synced 2024-12-25 20:18:07 +09:00
hotomoe/src/misc/identifiable-error.ts

14 lines
232 B
TypeScript
Raw Normal View History

/**
* 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;
}
}