mirror of
https://github.com/directus/directus.git
synced 2026-04-25 03:00:53 -04:00
8 lines
243 B
TypeScript
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');
|
|
}
|
|
}
|