Files
directus/api/src/exceptions/range-not-satisfiable.ts
Rijk van Zanten ef3d618d6c Add support for app-required field state (#7166)
* Add "required" option to fields

* Move some exceptions to shared

* Do client side validation for required

* Add conditional required support
2021-08-03 23:04:24 +02:00

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'
);
}
}