Source code for interactive_python.errors
[docs]class DiscoveryError(Exception):
"""Raised if some error occurs during service discovery
that we didn't anticipate.
"""
pass
[docs]class NoServersAvailableError(Exception):
"""Raised if Beam reports that no servers are available."""
pass
[docs]class ShortCodeError(Exception):
"""Base exception raised when some unexpected event occurs in the shortcode
OAuth flow."""
pass
[docs]class UnknownShortCodeError(ShortCodeError):
"""Exception raised when an unknown error happens while running shortcode
OAuth.
"""
pass
[docs]class ShortCodeAccessDeniedError(ShortCodeError):
"""Exception raised when the user denies access to the client in shortcode
OAuth."""
pass
[docs]class ShortCodeTimeoutError(ShortCodeError):
"""Exception raised when the shortcode expires without being accepted."""
pass