mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-12-11 19:09:39 -06:00
12 lines
323 B
TypeScript
12 lines
323 B
TypeScript
import { HttpStatus } from '../whatsapp/routers/index.router';
|
|
|
|
export class InternalServerErrorException {
|
|
constructor(...objectError: any[]) {
|
|
throw {
|
|
status: HttpStatus.INTERNAL_SERVER_ERROR,
|
|
error: 'Internal Server Error',
|
|
message: objectError.length > 0 ? objectError : undefined,
|
|
};
|
|
}
|
|
}
|