ErrorHandler ============ .. java:package:: com.ampl :noindex: .. java:type:: public interface ErrorHandler A basic interface for AMPL error handlers. If an application needs to implement customised error handling, it must implement this interface and then register an instance with the AMPL API using the \ ``setErrorHandler``\ method. The underlying AMPL interpreter will then report all errors and warnings through this interface. Methods ------- error ^^^^^ .. java:method:: public void error(AMPLException e) :outertype: ErrorHandler Receives notification of an error. warning ^^^^^^^ .. java:method:: public void warning(AMPLException e) :outertype: ErrorHandler Receives notification of a warning.