lib/shared/exceptions/unauthorized-ms.exception.ts
Custom microservice exception for unauthorized requests, extending MsException.
constructor(message?: string)
|
||||||
Parameters :
|
import { HttpStatus } from "@nestjs/common";
import { MsException } from "./ms.exception";
/**
* Custom microservice exception for unauthorized requests, extending MsException.
*/
export class UnauthorizedMsException extends MsException {
constructor(message?: string) {
super(HttpStatus.UNAUTHORIZED, message || "Unauthorized request");
}
}