Something went wrong. Try again.
because I got bored of customising my CV for every job
Something went wrong. Try again.
TypeScript
12345678910111213import { DomainError } from "./app-error";import { ConflictErrorCode } from "./error-codes";
export class EntityAlreadyExistsError extends DomainError { constructor(entityName: string, property: string, value: string) { super( ConflictErrorCode.ENTITY_ALREADY_EXISTS, `${entityName} with this ${property} already exists`, { entityName, property, value }, ); }}