findmy.errors#

Exception classes.

Exceptions#

InvalidCredentialsError

Raised when credentials are incorrect.

UnauthorizedError

Raised when an authorization error occurs.

UnhandledProtocolError

Raised when an unexpected error occurs while communicating with Apple servers.

InvalidStateError

Raised when a method is used that is in conflict with the internal account state.

Module Contents#

exception findmy.errors.InvalidCredentialsError#

Bases: Exception

Inheritance diagram of findmy.errors.InvalidCredentialsError

Raised when credentials are incorrect.

exception findmy.errors.UnauthorizedError#

Bases: Exception

Inheritance diagram of findmy.errors.UnauthorizedError

Raised when an authorization error occurs.

exception findmy.errors.UnhandledProtocolError#

Bases: RuntimeError

Inheritance diagram of findmy.errors.UnhandledProtocolError

Raised when an unexpected error occurs while communicating with Apple servers.

This is almost always a bug, so please report it.

exception findmy.errors.InvalidStateError#

Bases: RuntimeError

Inheritance diagram of findmy.errors.InvalidStateError

Raised when a method is used that is in conflict with the internal account state.

For example: calling BaseAppleAccount.login() while already logged in.