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