PyomoException

(class from pyomo.common.errors)

class pyomo.common.errors.PyomoException(*args)[source]

Bases: 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.

__init__(*args)[source]

Member Documentation

add_note(object, /)

Exception.add_note(note) – add a note to the exception

with_traceback(object, /)

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.