A basic interface for AMPL error handlers. If an application needs to
implement customized error handling, it must implement this interface and
then register an instance with the AMPL API using the
set_error_handler()
method.
The underlying AMPL interpreter will then report all errors and warnings
through this interface as AMPLException
objects.
-
error(exception)
Receives notification of an error.
-
warning(exception)
Receives notification of a warning.