mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-07-14 01:41:24 -06:00
12 lines
294 B
TypeScript
12 lines
294 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,
|
|
};
|
|
}
|
|
}
|