Skip to content

Python API: Common definitions

tina_mgr.defs.VERSION: Final = '0.1.14' module-attribute

The version of tina-mgr, semver-like.

tina_mgr.defs.Error dataclass

Bases: Exception

An error that occurred during the handling of the Tina files.

Source code in python/src/tina_mgr/defs.py
@dataclasses.dataclass
class Error(Exception):
    """An error that occurred during the handling of the Tina files."""

    def __str__(self) -> str:
        """Provide a human-readable error message."""
        return f"tina files handling error: {self!r}"

__str__()

Provide a human-readable error message.

Source code in python/src/tina_mgr/defs.py
def __str__(self) -> str:
    """Provide a human-readable error message."""
    return f"tina files handling error: {self!r}"