user.errors

Exceptions

OnegovUserError

Base class for all errors raised by onegov.user.

UnknownUserError

Raised when a user was not found.

InvalidActivationTokenError

Raised when the given activation token doesn't match.

ExistingUserError

Raised when a new user already exists.

AlreadyActivatedError

Raised when a user was already activated.

ExpiredSignupLinkError

Raised when the signup link in use has expired.

InsecurePasswordError

Raised when a user's password is not secure enough.

Module Contents

exception user.errors.OnegovUserError(message: str)[source]

Bases: Exception

Base class for all errors raised by onegov.user.

exception user.errors.UnknownUserError(message: str)[source]

Bases: OnegovUserError

Raised when a user was not found.

exception user.errors.InvalidActivationTokenError(message: str)[source]

Bases: OnegovUserError

Raised when the given activation token doesn’t match.

exception user.errors.ExistingUserError(message: str)[source]

Bases: OnegovUserError

Raised when a new user already exists.

exception user.errors.AlreadyActivatedError(message: str)[source]

Bases: OnegovUserError

Raised when a user was already activated.

exception user.errors.ExpiredSignupLinkError[source]

Bases: OnegovUserError

Raised when the signup link in use has expired.

exception user.errors.InsecurePasswordError[source]

Bases: OnegovUserError

Raised when a user’s password is not secure enough.