hippofish/packages/backend/src/misc/identifiable-error.ts
ThatOneCalculator 6b00abf05c
refactor: 🎨 rome
2023-01-12 20:40:33 -08:00

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