Files
FindMy.py/findmy/errors.py
2025-08-04 16:16:30 +02:00

26 lines
634 B
Python

"""Exception classes."""
class InvalidCredentialsError(Exception):
"""Raised when credentials are incorrect."""
class UnauthorizedError(Exception):
"""Raised when an authorization error occurs."""
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 :meth:`BaseAppleAccount.login` while already logged in.
"""