import { text } from '@rsdk/common'; import { ExceptionsProps, PipelineException } from '../../base'; import { Exception } from '../../metadata'; import { ExceptionKind } from '../../types'; @Exception({ description: text` General InputException. Means that user input was incorrect. It could be called ValidationException as well. Will be translated into 400 (BadRequest) in HTTP or into 3 (INVALID_ARGUMENT) in gRPC context. `, }) export class InputException extends PipelineException { constructor(message: string, props: ExceptionsProps = {}) { super(ExceptionKind.INPUT, message, props); } }