Files
directus/packages/drive/src/exceptions/FileNotFound.ts
Rijk van Zanten 35830a5dfe Move Flydrive home and implement Azure (#4110)
* 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
2021-02-16 18:33:50 -05:00

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