(class from pyomo.core.base.units_container)
pyomo.core.base.units_container
Bases: UnitsError
UnitsError
An exception indicating that inconsistent units are present on an expression.
E.g., x == y, where x is in units of kg and y is in units of meter
Member Documentation
Exception.add_note(note) – add a note to the exception
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.