mirror of
https://github.com/directus/directus.git
synced 2026-02-05 02:14:57 -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
289 B
TypeScript
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;
|
|
}
|
|
}
|