7 lines
155 B
TypeScript
7 lines
155 B
TypeScript
export class EntityError extends Error {
|
|
constructor(field: string, message?: string) {
|
|
super(message);
|
|
this.name = this.constructor.name;
|
|
}
|
|
}
|