UNPKG

@wennals/common

Version:

17 lines (16 loc) 614 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.UnvalidatedUserError = void 0; const custom_error_1 = require("./custom-error"); class UnvalidatedUserError extends custom_error_1.CustomError { constructor() { super('The email and password you entered do not match our records. Please verify your credentials, then try again.'); this.statusCode = 422; Object.setPrototypeOf(this, UnvalidatedUserError.prototype); } serializeErrors() { return [{ message: this.message }]; } } exports.UnvalidatedUserError = UnvalidatedUserError; ;