Errors

Here is a list of all the omni-fig specific errors that may be raised.

exception NoValidProjectError(ident)[source]

Bases: Exception

Raised when no project is found for the given identifier (which should be the name or path to the project)

exception AmbiguousRuleError(code, text)[source]

Bases: Exception

exception UnknownArtifactError[source]

Bases: Exception

exception MissingArtifactError(atype, name)[source]

Bases: Exception

exception MissingComponentError(name)[source]

Bases: omnifig.errors.MissingArtifactError

exception MissingModifierError(name)[source]

Bases: omnifig.errors.MissingArtifactError

exception MissingConfigError(name)[source]

Bases: omnifig.errors.MissingArtifactError

exception MissingScriptError(name)[source]

Bases: omnifig.errors.MissingArtifactError

exception ConfigNotFoundError(ident)[source]

Bases: Exception

Raised when a config parameter is not found and no viable defaults are provided

exception MissingParameterError(key)[source]

Bases: Exception

Raised when a config parameter was not found, and no viable defaults were provided

exception InvalidKeyError[source]

Bases: Exception

Only raised when a key cannot be converted to an index for a ConfigList

exception UnknownActionError[source]

Bases: Exception

Raised when trying to record an unrecognized action with the config object

exception PythonizeError(obj)[source]

Bases: Exception

Raised when an object is unable to be turned into a yaml object (primitives, dicts, lists)

exception WrongInfoContainerType(ctype, ctype_src=None)[source]

Bases: Exception

Raised when trying to load a container, but the container expects a different type (ie. subclass).

get_ctype()[source]
get_mtype_src()[source]
exception ConfigurizeFailed[source]

Bases: Exception

Raised when trying to configurize an object by type, but it ends up not working