UNPKG

alepha

Version:

Easy-to-use modern TypeScript framework for building many kind of applications.

11 lines (8 loc) 261 B
import { DbError } from "./DbError.ts"; export class DbEntityNotFoundError extends DbError { readonly name = "DbEntityNotFoundError"; readonly status = 404; constructor(entityName: string) { super(`Entity from '${entityName}' was not found`); } }