mirror of
https://github.com/malmeloo/FindMy.py.git
synced 2026-04-23 17:28:53 +02:00
Make errors.py top-level
This commit is contained in:
@@ -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.
|
||||
"""
|
||||
Reference in New Issue
Block a user