Exceptions

Package: keychain.core.exceptions

Description

Though the C++ library returns status by integer code, in the Python wrapper we take those and convert them to exceptions to be more pythonic. The following is a list of exceptions you’ll find in the wrapper and when they are generally thrown.

Since: v2.0

Exception Class Summary

Exception Description

KeychainError

An error (one of the non-success error codes values) occurred. The string representation will show the error code

NoActivePersona

No active persona exists but is necessary for the action

NullNativePointerError

A pointer to NULL in the C++ library was detected

BadUriConstructorParameter

The Uri constructor was invoked with a non-string and non-ctype void_p

BadInputType

An input parameter fails safety or non-NULL checks