Files
evolution-api/src/exceptions/404.exception.ts
2023-06-09 07:48:59 -03:00

12 lines
288 B
TypeScript

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