Make errors.py top-level

This commit is contained in:
Mike A
2024-02-10 22:15:41 +01:00
parent efcb87233f
commit 4e96ddc5e1
3 changed files with 2 additions and 3 deletions

View File

@@ -1,21 +0,0 @@
"""Exception classes."""
class InvalidCredentialsError(Exception):
"""Raised when credentials are incorrect."""
class UnhandledProtocolError(RuntimeError):
"""
Raised when an unexpected error occurs while communicating with Apple servers.
This is almost always a bug, so please report it.
"""
class InvalidStateError(RuntimeError):
"""
Raised when a method is used that is in conflict with the internal account state.
For example: calling `BaseAppleAccount.login` while already logged in.
"""