Exceptions - cihai.exc

When using cihai via Python, you can catch Cihai-specific exceptions via these. All Cihai-specific exceptions are catchable via CihaiException since its the base exception.

Exceptions raised from the Cihai library.

exception cihai.exc.CihaiException[source]

Bases: Exception

Base Cihai Exception class.

exception cihai.exc.ImportStringError(import_name, exception)[source]

Bases: ImportError, CihaiException

Provides information about a failed import_string() attempt.


This is from werkzeug.utils d36aaf1 on August 20 2022, LICENSE BSD. https://github.com/pallets/werkzeug

Changes: - Deferred load import import_string from cihai.util - Format with black

import_name: str

String in dotted notation that failed to be imported.

exception: BaseException

Wrapped exception.