evolution-api/src/exceptions/400.exception.ts
Alan Mosko 249aecbc0d wip
2023-07-26 10:58:13 -03:00

12 lines
324 B
TypeScript

import { HttpStatus } from '../whatsapp/routers/index.router';
export class BadRequestException {
constructor(...objectError: any[]) {
throw {
status: HttpStatus.BAD_REQUEST,
error: 'Bad Request',
message: objectError.length > 0 ? objectError : undefined,
};
}
}