Files
directus/packages/drive/src/exceptions/AuthorizationRequired.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
289 B
TypeScript

import { RuntimeException } from 'node-exceptions';
export class AuthorizationRequired extends RuntimeException {
raw: Error;
constructor(err: Error, path: string) {
super(`Unauthorized to access file ${path}\n${err.message}`, 500, 'E_AUTHORIZATION_REQUIRED');
this.raw = err;
}
}