File

lib/shared/exceptions/not-found-ms.exception.ts

Description

Custom microservice exception for not found requests, extending MsException.

Extends

MsException

Constructor

constructor(message?: string)
Parameters :
Name Type Optional
message string Yes
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");
  }
}

results matching ""

    No results matching ""