UNPKG

@rytass/cms-base-nestjs-module

Version:

Rytass Content Management System NestJS Base Module

29 lines (26 loc) 857 B
import { BadRequestException } from '@nestjs/common'; class CategoryNotFoundError extends BadRequestException { constructor(){ super('Category not found'); } code = 300; } class CircularCategoryNotAllowedError extends BadRequestException { constructor(){ super('Circular category is not allowed'); } code = 301; } class MultipleParentCategoryNotAllowedError extends BadRequestException { constructor(){ super('Multiple parent categories not allowed, please enable on module forRoot options'); } code = 302; } class ParentCategoryNotFoundError extends BadRequestException { constructor(){ super('Parent category not found'); } code = 303; } export { CategoryNotFoundError, CircularCategoryNotAllowedError, MultipleParentCategoryNotAllowedError, ParentCategoryNotFoundError };