TemplateExpressionError
(class from pyomo.common.errors
)
- class pyomo.common.errors.TemplateExpressionError(template, *args, **kwds)[source]
Bases:
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
- add_note()
Exception.add_note(note) – add a note to the exception
- with_traceback()
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.