mirror of
https://github.com/malmeloo/FindMy.py.git
synced 2026-04-18 03:54:01 +02:00
22 lines
537 B
Python
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.
|
|
"""
|