AMPLException#
- public class AMPLException extends AMPLExceptionBase#
Represent an exception generated by AMPL
Constructors#
AMPLException#
- public AMPLException(AMPLExceptionBase base)#
AMPLException#
Methods#
getLineNumber#
- public int getLineNumber()#
Returns the line number where the exception occurred. Line numbers starts from 1.
- Returns:
An integer representing the line number, or 0 if none is available.
getMessage#
getOffset#
- public int getOffset()#
Returns the offset, from the beginning of the last executed group of statements where the exception occurred.
- Returns:
An integer representing the offset, or 0 if none is available.