Espresso exceptions#
Submodule for Espresso exceptions.
Exceptions
- exception espresso.exceptions.InvalidExampleError(*args)[source]#
Raised if user attempts to instantiate an example number that does not exist
This is a subclass of both
EspressoError
andValueError
.Examples
>>> from espresso import SimpleRegression, InvalidExampleError >>> try: ... reg = SimpleRegression(6) ... except InvalidExampleError: ... print("InvalidExampleError triggered") ... InvalidExampleError triggered