Source code for django_facebook.exceptions

[docs]class FacebookException(Exception): ''' Base class for Facebook related exceptions ''' pass
[docs]class IncompleteProfileError(FacebookException): ''' Raised when we get insufficient data to create a profile for a user. One example is a Facebook token, without permissions to see the email. ''' pass
[docs]class AlreadyConnectedError(FacebookException): ''' Raised when another user account is already connected to your Facebook id ''' def __init__(self, users): self.users = users
[docs]class AlreadyRegistered(FacebookException): ''' Raised if you try to register when there's already an account with the given email or facebook id ''' pass
[docs]class MissingPermissionsError(FacebookException): ''' Raised if we lack permissions ''' pass