because I got bored of customising my CV for every job
at main 12 lines 383 B view raw
1import { DomainError } from "./app-error"; 2import { NotFoundErrorCode } from "./error-codes"; 3 4export class EntityNotFoundError extends DomainError { 5 constructor(entityName: string, property: string, value: string) { 6 super( 7 NotFoundErrorCode.ENTITY_NOT_FOUND, 8 `${entityName} with ${property} ${value} not found`, 9 { entityName, property, value }, 10 ); 11 } 12}