The InvalidEmailError is thrown when an email fails verification by the external API.

Hierarchy

Constructors

Properties

Constructors

  • Constructs an InvalidEmailError with a specific error code and message.

    Parameters

    • code: number

      The error code returned by the API.

    • message: string

      The error message returned by the API.

    Returns InvalidEmailError

Properties

cause?: unknown
code: number

The error code returned by the API.

message: string
name: string = "InvalidEmailError"
stack?: string