Files
FindMy.py/findmy/util/errors.py
2024-01-03 22:13:16 +01:00

22 lines
537 B
Python

"""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.
"""