Files
directus/api/src/exceptions/item-not-found.ts
2020-07-29 11:22:56 -04:00

8 lines
243 B
TypeScript

import { BaseException } from './base';
export class ItemNotFoundException extends BaseException {
constructor(id: string | number, collection: string) {
super(`Item "${id}" doesn't exist in "${collection}".`, 404, 'ITEM_NOT_FOUND');
}
}