Exceptions

The following custom exceptions are thrown by the library.

MutinyException

class mutiny.errors.MutinyException[source]

Bases: Exception

A base class for all of the Mutiny’s exceptions.

AuthenticationError

class mutiny.errors.AuthenticationError[source]

Bases: mutiny.errors.MutinyException

A base class for the authentication errors.

InvalidCredentials

class mutiny.errors.InvalidCredentials[source]

Bases: mutiny.errors.AuthenticationError

Thrown when the authentication has failed due to incorrect credentials.

OnboardingNotFinished

class mutiny.errors.OnboardingNotFinished[source]

Bases: mutiny.errors.AuthenticationError

Thrown when trying to authenticate as a user that has not done onboarding (choosing a username after account registration) yet.