import { HttpException } from "@nestjs/common"; /** * Thrown when authentication fails because the user was not found. * * Returns HTTP 401 Unauthorized. The identifier is available on the exception * for server-side logging/auditing but is NOT included in the response body. * * @example * ```typescript * try { * await authenticationService.authenticate(token) * } catch (error) { * if (error instanceof IncorrectCredentialsException) { * this.logger.warn(`Failed auth for: ${error.identifier}`) * } * } * ``` */ export declare class IncorrectCredentialsException extends HttpException { readonly identifier: string; /** * @param identifier - The identifier used in the failed authentication attempt, * e.g. an email or and id */ constructor(identifier: string); /** * Returns the error response body. * * @returns Object containing statusCode (401) and message */ getResponse(): Record; }