mirror of
https://github.com/directus/directus.git
synced 2026-04-25 03:00:53 -04:00
* Add "required" option to fields * Move some exceptions to shared * Do client side validation for required * Add conditional required support
8 lines
221 B
TypeScript
8 lines
221 B
TypeScript
import { BaseException } from '@directus/shared/exceptions';
|
|
|
|
export class RouteNotFoundException extends BaseException {
|
|
constructor(path: string) {
|
|
super(`Route ${path} doesn't exist.`, 404, 'ROUTE_NOT_FOUND');
|
|
}
|
|
}
|