EspressoError#

exception cofi_espresso.EspressoError[source]#

Base class for all Espresso errors

exception cofi_espresso.InvalidExampleError(*args)[source]#

Raised if user attempts to instantiate an example number that does not exist

This is a subclass of both EspressoError and ValueError.

Examples

>>> from cofi_espresso import SimpleRegression, InvalidExampleError
>>> try:
...     reg = SimpleRegression(6)
... except InvalidExampleError:
...     print("InvalidExampleError triggered")
...
InvalidExampleError triggered