Exception: Parse::Error::EmailNotVerifiedError
- Inherits:
-
AuthenticationError
- Object
- StandardError
- Parse::Error
- AuthenticationError
- Parse::Error::EmailNotVerifiedError
- Defined in:
- lib/parse/model/classes/user.rb
Overview
Error code 205 (Parse::Response::ERROR_EMAIL_NOT_FOUND) raised by User.login! and User#verify_password when Parse Server returns code 205 because +preventLoginWithUnverifiedEmail+ is enabled and the account's email address has not been verified.
It is a SUBCLASS of AuthenticationError on purpose: before this typed error existed, the unverified-email rejection raised a plain +AuthenticationError+, so existing callers wrapping User.login! in +rescue AuthenticationError+ must keep catching it (subclassing keeps that contract — making it a sibling would be a silent breaking change). Callers who want to special-case the unverified-email path just rescue this narrower subclass FIRST.
Instance Attribute Summary
Attributes inherited from Parse::Error
Method Summary
Methods inherited from Parse::Error
Constructor Details
This class inherits a constructor from Parse::Error