Exception: Parse::Error::AccountLockoutError
- Inherits:
-
AuthenticationError
- Object
- StandardError
- Parse::Error
- AuthenticationError
- Parse::Error::AccountLockoutError
- Defined in:
- lib/parse/model/classes/user.rb
Overview
Raised by Client when the SDK's client-side login rate-limit guard fires — i.e. the same username has failed API::Users::LOGIN_MAX_FAILURES or more times and the exponential back-off window has not yet elapsed.
The class is a subclass of AuthenticationError so that a single rescue Parse::Error::AuthenticationError handler covers both wrong-credential failures and lockout situations. Callers that need to distinguish the lockout case just rescue this narrower subclass first. Because the previous implementation raised a plain +RuntimeError+, there is no prior +AuthenticationError+ rescue contract to preserve — this is a new typed entry in the login-failure taxonomy.
Note that +Parse::Error < StandardError+, so a bare +rescue+ or +rescue StandardError+ still catches this error.
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