5.4. The Class ErrorOutput and Configuring Message Outputs

The class ErrorOutput is the central error handle and redirection class for the ML. It contains a set of methods to print debug and tracing information, warnings, errors and fatal errors, and to configure a lot of error and message output settings, to specify special behavior (e.g., aborting) on some message types and much more. It also offers a registration mechanism where the application can register itself to be notified when an error, tracing, warning or debug information is to be printed or handled. They permit to register functions to notify the application, to control a set of debug environment variables, etc.

The ML provides a global instance MLErrorOutput of this class which is normally used by debug and error handling macros as well as by the ML API (see Section 6.3, “mlAPI.h”). You do not have to create an instance on your own.

[Note]Note

Usually, you should not use this class directly.

Since this class is subject to change, use debug or error handling macros instead.

If you need to configure the error handling system e.g., for your application, use the CoreControl module (if available in your application) or functionality of ML API (see Section 6.3, “mlAPI.h”).

See the header file documentation of mlErrorOutput.h and mlErrorOutputInfos.h for detailed information on how to use the following methods.

The class ErrorOutput offers methods to