import { BaseException , ErrorCodeType , MetadataType } from './BaseException' ; import { IError , ECodes } from './code.types' ; export const PERMISSION_DENIED = { code : ECodes . PERMISSION_DENIED , message : 'Permission denied' , } ; export class PermissionDeniedException extends BaseException { constructor ( customCode ? , metadata = { } ) { super ( customCode || PERMISSION_DENIED , metadata ) ; } }