import { text } from '@rsdk/common'; import { ExceptionsProps, PipelineException } from '../../base'; import { Exception } from '../../metadata'; import { ExceptionKind } from '../../types'; @Exception({ description: text` General DuplicateEntityException. Means that requested operation will lead to duplication, which is forbidden by business rules. Will be translated into 409 (Conflict) in HTTP (just as ConflictException) or into (ALREADY_EXISTS) in gRPC context. `, }) export class DuplicateEntityException extends PipelineException { constructor(message: string, props: ExceptionsProps = {}) { super(ExceptionKind.DUPLICATION, message, props); } }