Add forbidden exception

This commit is contained in:
rijkvanzanten
2020-07-13 16:39:20 -04:00
parent 300951e078
commit 8ca92cb48d
2 changed files with 8 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
import { BaseException } from './base';
export class ForbiddenException extends BaseException {
constructor(message = `You don't have permission to access this.`) {
super(message, 403, 'NO_PERMISSION_TO_ACCESS');
}
}

View File

@@ -1,6 +1,7 @@
export * from './base';
export * from './collection-not-found';
export * from './field-not-found';
export * from './forbidden';
export * from './invalid-credentials';
export * from './invalid-payload';
export * from './invalid-query';