File

lib/shared/exceptions/invalid-token-ms.exception.ts

Description

Custom microservice exception for invalid token, 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 invalid token, extending MsException.
 */
export class InvalidTokenMsException extends MsException {
  constructor(message?: string) {
    super(HttpStatus.UNAUTHORIZED, message || "Invalid token");
  }
}

results matching ""

    No results matching ""