13
packages/backend/src/misc/identifiable-error.ts
Normal file
13
packages/backend/src/misc/identifiable-error.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
/**
|
||||
* 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;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user