Evo / src /exceptions /404.exception.ts
usofn8n's picture
Add Evolution API files
80f4e3d
import { HttpStatus } from '@api/routes/index.router';
export class NotFoundException {
constructor(...objectError: any[]) {
throw {
status: HttpStatus.NOT_FOUND,
error: 'Not Found',
message: objectError.length > 0 ? objectError : undefined,
};
}
}