Skip to content

trudag.dotstop.core.exception

Categories of Error that can be encountered when using dotstop.

ArtifactError

Bases: ValueError

An error cause by artifact operation problems.

ArtifactModelError

Bases: Exception

An Error caused by a mismatch between the artifact schema used by the tool and the actual artifact schema.

ConfigError

Bases: ValueError

An error caused by configuration operation failing

DataModelError

Bases: Exception

An Error caused by a mismatch between the data schema used by the tool and the data schema used by a store.

DotstopError

Bases: Exception

Generic Exception for all Errors encountered by the dotstop library.

GitError

Bases: DotstopError

An error caused by git operation failing

GraphActionError

Bases: DotstopError

An Error caused by trying to perform a invalid action (e.g. a query or operation) on a valid graph.

GraphStructureError

Bases: DotstopError

An Error caused by trying create (or perform a valid action on) an invalid graph.

InvalidArgumentError

Bases: ValueError

An error caused by an illegal argument value

ItemError

Bases: DotstopError

An Error caused by discovery of an invalid item, either when creating, using or modifying it.

PluginError

Bases: DotstopError

An Error encountered when using a plugin.

ReferenceError

Bases: DotstopError

An Error encountered when checking references in dotstop item

VersionError

Bases: DotstopError

An Error caused by a version mismatch between current trudag and the version used to generate the dotfile.

map_and_raise

map_and_raise(
    map_func: Callable[[Exception], Exception],
    *map_from: type[Exception],
) -> Callable[[Callable[..., Any]], Callable[..., Any]]

Returns a decorator that catches all exceptions of types map_from, applies the function map to the caught exception and raises the result.