penisularhr / src / exceptions / block.ts
block.ts
Raw
import { BadRequestException, NotFoundException } from '@nestjs/common';

export class BlockNotFoundException extends NotFoundException {
  constructor(error?: string) {
    super('Block not found', error);
  }
}

export class BlockNotActiveException extends BadRequestException {
  constructor(error?: string) {
    super('Block is not active', error);
  }
}