Plain is headed towards 1.0! Subscribe for development updates →

 1class OAuthError(Exception):
 2    """Base class for OAuth errors"""
 3
 4    message = "An error occurred during the OAuth process."
 5
 6
 7class OAuthStateMissingError(OAuthError):
 8    message = "The state parameter is missing. Please try again."
 9
10
11class OAuthStateMismatchError(OAuthError):
12    message = "The state parameter did not match. Please try again."
13
14
15class OAuthUserAlreadyExistsError(OAuthError):
16    message = "A user already exists with this email address. Please log in first and then connect this OAuth provider to the existing account."