linotp.lib.error module

definition of some specific error classes

exception linotp.lib.error.ConfigAdminError(description='config admin error!', id=10)[source]

Bases: linotp.lib.error.LinotpError

exception linotp.lib.error.HSMException(description='hsm error!', id=707)[source]

Bases: linotp.lib.error.LinotpError

exception linotp.lib.error.InvalidFunctionParameter(parameter_name, message)[source]

Bases: exceptions.Exception

used to signify an invalid function parameter

Example: >>> def foo(bar): >>> raise ArgumentError(‘bar’, ‘invalid bar value’)

exception linotp.lib.error.LinotpError(description=u'LinotpError!', id=10)[source]

Bases: exceptions.Exception

getDescription()[source]
getId()[source]
exception linotp.lib.error.ParameterError(description='unspecified parameter error!', id=905)[source]

Bases: linotp.lib.error.LinotpError

exception linotp.lib.error.ProgrammingError[source]

Bases: exceptions.Exception

exception linotp.lib.error.SelfserviceException(description='selfservice error!', id=807)[source]

Bases: linotp.lib.error.LinotpError

exception linotp.lib.error.ServerError(description='server error!', id=905)[source]

Bases: linotp.lib.error.LinotpError

exception linotp.lib.error.TokenAdminError(description='token admin error!', id=10)[source]

Bases: linotp.lib.error.LinotpError

exception linotp.lib.error.TokenStateError(message)[source]

Bases: linotp.lib.error.UserError

raised by StatefulTokenMixin, if a stateful token got a request that doesn’t fit its internal rollout state

The exception will be mapped into the generic message ‘Unfitting request for this token’ when it gets transported to the API.

exception linotp.lib.error.TokenTypeNotSupportedError(description='this token type is not supported on this setup!', id=906)[source]

Bases: linotp.lib.error.LinotpError

exception linotp.lib.error.UserError(description='user error!', id=905)[source]

Bases: linotp.lib.error.LinotpError

exception linotp.lib.error.ValidateError(description='validation error!', id=10)[source]

Bases: linotp.lib.error.LinotpError