AMPLException ============= .. java:package:: com.ampl :noindex: .. java:type:: public class AMPLException extends AMPLExceptionBase Represent an exception generated by AMPL Constructors ------------ AMPLException ^^^^^^^^^^^^^ .. java:constructor:: public AMPLException(AMPLExceptionBase base) :outertype: AMPLException AMPLException ^^^^^^^^^^^^^ .. java:constructor:: public AMPLException(String filename, int row, int offset, String message) :outertype: AMPLException Methods ------- getLineNumber ^^^^^^^^^^^^^ .. java:method:: public int getLineNumber() :outertype: AMPLException Returns the line number where the exception occurred. Line numbers starts from 1. :return: An integer representing the line number, or 0 if none is available. getMessage ^^^^^^^^^^ .. java:method:: public String getMessage() :outertype: AMPLException Returns a message for this error. :return: The error or warning message. getOffset ^^^^^^^^^ .. java:method:: public int getOffset() :outertype: AMPLException Returns the offset, from the beginning of the last executed group of statements where the exception occurred. :return: An integer representing the offset, or 0 if none is available. getSourceName ^^^^^^^^^^^^^ .. java:method:: public String getSourceName() :outertype: AMPLException Returns the name of the source where the exception occurred. :return: A string containing the name, or null if none is available.