credmark.cmf.model.errors.ModelDataError

exception ModelDataError(message, code='generic', detail=None, **kwargs)[source]

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.

A model may raise a ModelDataError in situations such as:
  • the requested data does not exist or is not available for the current context block number.

  • the input data is incomplete, references non-existent items, or cannot be processed

A model may (and often should) catch and handle ModelDataError raised from calls to context.run_model().

Parameters