import { text } from '@rsdk/common'; import { ExceptionsProps, PipelineException } from '../../base'; import { Exception } from '../../metadata'; import { ExceptionKind } from '../../types'; @Exception({ description: text` General AuthenticationException. Means that system was unable to recognize user or credentials are invalid. Will be translated into 401 (Unauthorized) in HTTP or into 16 (UNAUTHENTICATED) in gRPC context. `, }) export class AuthException extends PipelineException { constructor(message: string, props: ExceptionsProps = {}) { super(ExceptionKind.AUTHENTICATION, message, props); } }