PyomoException

(class from pyomo.common.errors)

class pyomo.common.errors.PyomoException[source]

Bases: Exception

Exception class for other Pyomo exceptions to inherit from, allowing Pyomo exceptions to be caught in a general way (e.g., in other applications that use Pyomo).

__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.