mirror of
https://github.com/directus/directus.git
synced 2026-02-12 10:35:25 -05:00
* Add new packages * Update docs * Update linked packages * Setup file pointers * Don't require getStream to be async * List credits * Load azure in storage * Fix typo in docs * Fix another typo * Remove not about raising an issue
10 lines
267 B
TypeScript
10 lines
267 B
TypeScript
import { RuntimeException } from 'node-exceptions';
|
|
|
|
export class FileNotFound extends RuntimeException {
|
|
raw: Error;
|
|
constructor(err: Error, path: string) {
|
|
super(`The file ${path} doesn't exist\n${err.message}`, 500, 'E_FILE_NOT_FOUND');
|
|
this.raw = err;
|
|
}
|
|
}
|