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

Raised when credentials are incorrect.

exception findmy.errors.UnauthorizedError

Bases: Exception

Raised when an authorization error occurs.

exception findmy.errors.UnhandledProtocolError

Bases: RuntimeError

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

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

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