This commit is contained in:
Kallesh B S 2025-05-06 09:56:45 +05:30
parent 81945f66c4
commit ecb9974f03
2 changed files with 21 additions and 1 deletions

View File

@ -0,0 +1,19 @@
import { HttpException, HttpStatus } from '@nestjs/common';
export class BadRequestException extends HttpException {
constructor(
message = 'Bad Request',
errorCode = 'INTERNAL_ERROR',
data: any = null,
) {
super(
{
statusCode: HttpStatus.INTERNAL_SERVER_ERROR,
message,
// errorCode,
// data,
},
HttpStatus.INTERNAL_SERVER_ERROR,
);
}
}

View File

@ -1,4 +1,4 @@
import { BadRequestException, Injectable } from '@nestjs/common';
import { Injectable } from '@nestjs/common';
import * as oracledb from 'oracledb';
import { OracleDBService } from 'src/db/db.service';
import {
@ -18,6 +18,7 @@ import {
UpdateEfFeeDTO,
UpdateFeeCommBodyDTO,
} from './manage-fee.dto';
import { BadRequestException } from 'src/exceptions/badRequest.exception';
@Injectable()
export class ManageFeeService {