GLG Toolkit, C / C++ API Library  Version 4.6
Error Handling

A custom callback that may be installed to implement custom error handling. More...

Detailed Description

A custom callback that may be installed to implement custom error handling.

Typedefs

typedef void(* GlgErrorHandler) (char *message, GlgErrorType error_type)
 A custom error handler installed via GlgSetErrorHandler. More...
 

Typedef Documentation

◆ GlgErrorHandler

typedef void(* GlgErrorHandler) (char *message, GlgErrorType error_type)

A custom error handler installed via GlgSetErrorHandler.

This function is invoked with a diagnostic message when an error occurs and may be used to implement custom error handling.

Parameters
messageError description
error_typeSpecifies an error type.

A custom error handler may be used to suppress some messages, while still using the default error handler to process the rest of the error messages.

The default error handler is returned by the GlgSetErrorHandler function that was used to install a custom error handler. A custom error handler can invoke the default error handler for error messages that don't require custom processing.