AMPLException

class amplpy.AMPLException(_impl)

Represent an exception generated by AMPL.

__init__(_impl)

x.__init__(…) initializes x; see help(type(x)) for signature

getSourceName()

Get the name of the file where the error was detected.

getLineNumber()

Get the row where the error is located.

getOffset()

Get the offset where the error is located.

getMessage()

Get the error message.

__module__ = 'amplpy.exceptions'
__weakref__

list of weak references to the object (if defined)