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

Hierarchy

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
prepareStackTrace?: (err: Error, stackTraces: CallSite[]) => any

Optional override for formatting stack traces

stackTraceLimit: number

Methods

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • OptionalconstructorOpt: Function

    Returns void

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • OptionalconstructorOpt: Function

    Returns void