lenskit.diagnostics#

Warning and error classes and general LensKit diagnostic code.

Exceptions#

DataWarning

Warning raised for detectable problems with input data.

DataError

Error raised for detectable problesms with input data.

FieldError

The requested field does not exist.

ConfigWarning

Warning raised for detectable problems with component configurations.

TypecheckWarning

Warnings for runtime type check failures.

PipelineError

Pipeline configuration errors.

PipelineWarning

Pipeline configuration and setup warnings. We also emit warnings to the

Module Contents#

exception lenskit.diagnostics.DataWarning#

Bases: UserWarning

Warning raised for detectable problems with input data.

exception lenskit.diagnostics.DataError#

Bases: Exception

Error raised for detectable problesms with input data.

exception lenskit.diagnostics.FieldError(entity, field)#

Bases: KeyError

The requested field does not exist.

exception lenskit.diagnostics.ConfigWarning#

Bases: UserWarning

Warning raised for detectable problems with component configurations.

exception lenskit.diagnostics.TypecheckWarning#

Bases: UserWarning

Warnings for runtime type check failures.

exception lenskit.diagnostics.PipelineError#

Bases: Exception

Pipeline configuration errors.

Note

This exception is only to note problems with the pipeline configuration and structure (e.g. circular dependencies). Errors running the pipeline are raised as-is.

exception lenskit.diagnostics.PipelineWarning#

Bases: Warning

Pipeline configuration and setup warnings. We also emit warnings to the logger in many cases, but this allows critical ones to be visible even if the client code has not enabled logging.

Note

This warning is only to note problems with the pipeline configuration and structure (e.g. circular dependencies). Errors running the pipeline are raised as-is.