lib/shared/exceptions/too-many-requests-ms.exception.ts
Custom microservice exception for too many requests, extending MsException.
constructor(message?: string)
|
||||||
Parameters :
|
import { HttpStatus } from "@nestjs/common";
import { MsException } from "./ms.exception";
/**
* Custom microservice exception for too many requests, extending MsException.
*/
export class TooManyRequestsMsException extends MsException {
constructor(message?: string) {
super(
HttpStatus.TOO_MANY_REQUESTS,
message || "You have made too many requests. Please try again later.",
);
}
}