mirror of
https://github.com/directus/directus.git
synced 2026-04-03 03:00:39 -04:00
* Add "required" option to fields * Move some exceptions to shared * Do client side validation for required * Add conditional required support
13 lines
359 B
TypeScript
13 lines
359 B
TypeScript
import { Range } from '@directus/drive';
|
|
import { BaseException } from '@directus/shared/exceptions';
|
|
|
|
export class RangeNotSatisfiableException extends BaseException {
|
|
constructor(range: Range) {
|
|
super(
|
|
`Range "${range.start}-${range.end}" is invalid or the file's size doesn't match the requested range.`,
|
|
416,
|
|
'RANGE_NOT_SATISFIABLE'
|
|
);
|
|
}
|
|
}
|