import { text } from '@rsdk/common'; import { ExceptionsProps, PipelineException } from '../../base'; import { Exception } from '../../metadata'; import { ExceptionKind } from '../../types'; @Exception({ description: text` General NotAllowedException. Means that this user can't access specific resource or functionality. Will be translated into 403 (Forbidden) in HTTP or into 7 (PERMISSION_DENIED) in gRPC context. `, }) export class NotAllowedException extends PipelineException { constructor(message: string, props: ExceptionsProps = {}) { super(ExceptionKind.NOT_ALLOWED, message, props); } }