credmark.cmf.model.errors

Functions

create_instance_from_error_dict

Exceptions

MaxModelRunDepthError(message, **data)

Models successively calling context.run_model() with nesting too deep.

ModelBaseError(message, **data)

Base error class for Credmark model errors.

ModelDataError(message[, code, detail])

An error that occurs during the lookup, generation, or processing of data this is considered deterministic and permanent, in the sense that for the given context, the same error will always occur.

ModelDefinitionError(message, **data)

An error related to the definition of model code.

ModelEngineError(message, **data)

An error occurred before, during, or after a model run relating to the runner engine and not the model code itself.

ModelInputError(message, **data)

An error that occurs when invalid input is sent to a model.

ModelInvalidStateError(message, **data)

A request was made that conflicts with the current context, for example context.run_model() was called with a block number higher than the block number of the current context.

ModelNoContextError(message, **data)

An attempt was made to use a core data object outside the context of a model run.

ModelNotFoundError(message, **data)

ModelOutputError(message, **data)

There was an error validating the output of the model.

ModelRunError(message, **data)

An error that occurs during the running of a model.

ModelTypeError(message, **data)

There was an error in a model while converting data to a DTO class.

DTO Classes

ModelCallStackEntry

An item in an error's call stack.

ModelDataErrorDTO

An error that occurs during the lookup, generation, or processing of data this is considered deterministic and permanent, in the sense that for the given context, the same error will always occur.

ModelErrorDTO

Data fields common to all error types: ModelDataError, ModelRunError, ModelInputError etc.

ModelErrorDTO[SlugAndVersionDTO]

ModelNotFoundErrorDTO

A model requested to run was not found.

SlugAndVersionDTO