Class: NewUserError

NewUserError(optionsopt)

Error class for reporting registration related problems. Behaves as a normal ReportedError, but comes with built-in translation layer for DB level errors.

Constructor

new NewUserError(optionsopt)

Parameters:
Name Type Attributes Description
options Object <optional>

error data

Properties
Name Type Description
payload User

user object that triggered this error

parentError Error

the original error

Source: