import { text } from '@rsdk/common'; import { ExceptionsProps, PipelineException } from '../../base'; import { Exception } from '../../metadata'; import { ExceptionKind } from '../../types'; @Exception({ description: text` General NotFoundException. It's recommended to create more specific exceptions by deriving BaseException class. Will be translated into 404 (NotFound) in HTTP or into 5 (NOT_FOUND) in gRPC context. `, }) export class NotFoundException extends PipelineException { constructor(message: string, props: ExceptionsProps = {}) { super(ExceptionKind.NOT_FOUND, message, props); } }