1__all__ = [
 2    "OAuthError",
 3    "OAuthStateMismatchError",
 4    "OAuthStateMissingError",
 5    "OAuthUserAlreadyExistsError",
 6]
 7
 8
 9class OAuthError(Exception):
10    """Base class for OAuth errors"""
11
12    message = "An error occurred during the OAuth process."
13
14
15class OAuthStateMissingError(OAuthError):
16    message = "The OAuth state is missing. Your session may have expired or cookies may be blocked. Please try again."
17
18
19class OAuthStateMismatchError(OAuthError):
20    message = "The state parameter did not match. Please try again."
21
22
23class OAuthUserAlreadyExistsError(OAuthError):
24    message = "A user already exists with this email address. Please log in first and then connect this OAuth provider to the existing account."