The following diagram gives an overview of the custom exceptions used by python-omemo and their hierarchy: