File size: 295 Bytes
80f4e3d |
1 2 3 4 5 6 7 8 9 10 11 12 |
import { HttpStatus } from '@api/routes/index.router';
export class UnauthorizedException {
constructor(...objectError: any[]) {
throw {
status: HttpStatus.UNAUTHORIZED,
error: 'Unauthorized',
message: objectError.length > 0 ? objectError : 'Unauthorized',
};
}
}
|