(class from pyomo.common.errors)
pyomo.common.errors
Bases: ValueError
ValueError
Special ValueError raised by getitem for template arguments
This exception is triggered by the Pyomo expression system when attempting to get a member of an IndexedComponent using either a TemplateIndex, or an expression containing a TemplateIndex.
Users should never see this exception.
Member Documentation
Exception.add_note(note) – add a note to the exception
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.