mod e-f
This commit is contained in:
parent
81945f66c4
commit
ecb9974f03
19
src/exceptions/badRequest.exception.ts
Normal file
19
src/exceptions/badRequest.exception.ts
Normal 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,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -1,4 +1,4 @@
|
|||||||
import { BadRequestException, Injectable } from '@nestjs/common';
|
import { Injectable } from '@nestjs/common';
|
||||||
import * as oracledb from 'oracledb';
|
import * as oracledb from 'oracledb';
|
||||||
import { OracleDBService } from 'src/db/db.service';
|
import { OracleDBService } from 'src/db/db.service';
|
||||||
import {
|
import {
|
||||||
@ -18,6 +18,7 @@ import {
|
|||||||
UpdateEfFeeDTO,
|
UpdateEfFeeDTO,
|
||||||
UpdateFeeCommBodyDTO,
|
UpdateFeeCommBodyDTO,
|
||||||
} from './manage-fee.dto';
|
} from './manage-fee.dto';
|
||||||
|
import { BadRequestException } from 'src/exceptions/badRequest.exception';
|
||||||
|
|
||||||
@Injectable()
|
@Injectable()
|
||||||
export class ManageFeeService {
|
export class ManageFeeService {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user