| Overview | Group | Tree | Graph | Deprecated | Index | Concepts |

Instances of this class are used by OPL to notify errors and warnings.
The default implementation will write messages to cout or an alternate stream given
to the constructor.
A custom implementation can be used to intercept those messages and display them differently. Useful for embedding OPL into other applications. Refer also to the Interfaces User's Manual.
See Also:
IloOplModelDefinition, IloOplModel
| Method Summary | |
|---|---|
public void | abort() |
public void | end() |
public void | error(const IloOplMessage & message, IloOplLocation location) |
public void | fatal(const IloOplMessage & message, IloOplLocation location) |
public | IloOplErrorHandler(IloOplErrorHandlerBaseI * impl) |
public | IloOplErrorHandler(IloEnv env, std::ostream & outs) |
public IloBool | ok() const |
public void | warning(const IloOplMessage & message, IloOplLocation location) |
| Method Detail |
|---|
This constructor creates an error handler from an existing implementation object.
This constructor creates a default error handler, reporting to a stream.
| env |
The environment used for allocation.
|
| outs |
The stream to which messages are written.
|
This member function stops the current OPL process.
An exception of type IloOplAbort, extending IloOplException will be raised.
OPL does so as soon as possible.
This mechanism applies to OPL processing only, including scripting. It does not stop Concert, CPLEX, or CP processing.
Clears the memory used by this object
This member function reports an error.
OPL tries to continue processing as long as possible after errors were handled.
See Also:
| message |
The message to report.
|
| location |
The location where the event causing the error occurred.
|
This member function reports a fatal error message.
Fatal errors will stop OPL processing immediatly.
See Also:
| message |
The message to report.
|
| location |
The location where the event causing the fatal error occurred.
|
This member function tells you whether errors were reported.
IloTrue if no errors were reported. This member function reports a warning.
Warnings draw the attention to uncommon situations, they can be switched off using OPL settings.
See Also:
IloOplLocation, IloOplSettings::setWithWarnings
| message |
The message to report.
|
| location |
The location where the event causing the warning occurred.
|