Constructs an InvalidEmailError
with a specific error code and message.
The error code returned by the API.
The error message returned by the API.
Optional
causeThe error code returned by the API.
Optional
stackStatic
Optional
prepareOptional override for formatting stack traces
Static
stackStatic
captureCreate .stack property on a target object
Optional
constructorOpt: FunctionCreate .stack property on a target object
Optional
constructorOpt: Function
The
InvalidEmailError
is thrown when an email fails verification by the external API.