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 { NotFoundErrorCode } from "./error-codes";
export class EntityNotFoundError extends DomainError { constructor(entityName: string, property: string, value: string) { super( NotFoundErrorCode.ENTITY_NOT_FOUND, `${entityName} with ${property} ${value} not found`, { entityName, property, value }, ); }}