MouseTrap

(class from pyomo.common.errors)

class pyomo.common.errors.MouseTrap[source]

Bases: PyomoException, NotImplementedError

Exception class used to throw errors for not-implemented functionality that might be rational to support (i.e., we already gave you a cookie) but risks taking Pyomo’s flexibility a step beyond what is sane, or solvable, or communicable to a solver, etc. (i.e., Really? Now you want a glass of milk too?)

__init__(*args, **kwargs)

Member Documentation

add_note()

Exception.add_note(note) – add a note to the exception

with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.