(class from pyomo.common.errors)
pyomo.common.errors
Bases: Exception
Exception
General base class for Pyomo exceptions.
This allows 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 that is used if no other message/arguments are provided.
Member Documentation
Exception.add_note(note) – add a note to the exception
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.