diff --git a/services/web/app/src/Features/Errors/Errors.js b/services/web/app/src/Features/Errors/Errors.js index e5358670f8..f64200fbd0 100644 --- a/services/web/app/src/Features/Errors/Errors.js +++ b/services/web/app/src/Features/Errors/Errors.js @@ -238,6 +238,12 @@ class InvalidQueryError extends OErrorV2CompatibleError { class AffiliationError extends OError {} +class InvalidEmailError extends OError { + get i18nKey() { + return 'invalid_email' + } +} + class InvalidInstitutionalEmailError extends OError { get i18nKey() { return 'invalid_institutional_email' @@ -288,5 +294,6 @@ module.exports = { DocHasRangesError, InvalidQueryError, AffiliationError, + InvalidEmailError, InvalidInstitutionalEmailError, }