import { text } from '@rsdk/common'; import { ExceptionsProps, PipelineException } from '../../base'; import { Exception } from '../../metadata'; import { ExceptionKind } from '../../types'; @Exception({ description: text` General ConflictException. Means that request was correct by itself, but business rules doesn't allow to peform operation. When it's appropriate use DuplicateEntityException instead (more specific) Will be translated into 409 (Conflict) in HTTP (just as DuplicateEntityException) or into 9 (FAILED_PRECONDITION) in gRPC context. `, }) export class ConflictException extends PipelineException { constructor(message: string, props: ExceptionsProps = {}) { super(ExceptionKind.CONFLICT, message, props); } }