mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2026-01-25 13:00:01 -06:00
12 lines
288 B
TypeScript
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,
|
|
};
|
|
}
|
|
}
|