(class from pyomo.common.errors)
pyomo.common.errors
Bases: PyomoException, ValueError
PyomoException
ValueError
Exception raised for expressions that cannot be represented or emitted.
Pyomo will raise this exception when:
Compiling an expression that cannot be expressed / written in the target format or interface.
See also the derived InvalidConstraintError.
InvalidConstraintError
Member Documentation
Exception.add_note(note) – add a note to the exception
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.