PyomoException

(class from pyomo.common.errors)

class pyomo.common.errors.PyomoException(*args)[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). Subclasses can define a class-level default_message attribute.

__init__(*args)[source]

Member Documentation

add_note(object, /)

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

with_traceback(object, /)

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