AMPLException

class amplpy.AMPLException(_impl)

Represent an exception generated by AMPL.

__init__(_impl)
get_source_name()

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

get_line_number()

Get the row where the error is located.

get_offset()

Get the offset where the error is located.

get_message()

Get the error message.

__str__()

Return str(self).

getLineNumber()

Get the row where the error is located.

getMessage()

Get the error message.

getOffset()

Get the offset where the error is located.

getSourceName()

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

__module__ = 'amplpy.exceptions'
__weakref__

list of weak references to the object (if defined)