[docs]
class AuthenticationError(Exception):
pass
[docs]
class SanityException(Exception):
pass
[docs]
class PythonAnywhereApiException(Exception):
pass
[docs]
class NoTokenError(PythonAnywhereApiException):
pass
[docs]
class DomainAlreadyExistsException(PythonAnywhereApiException):
pass
[docs]
class MissingCNAMEException(PythonAnywhereApiException):
def __init__(self):
super().__init__(
"Could not find a CNAME for your website. If you're using an A record, "
"CloudFlare, or some other way of pointing your domain at PythonAnywhere "
"then that should not be a problem. If you're not, you should double-check "
"your DNS setup."
)