## Printer Device Driver

[prev][next][parent][TOC]

### Exception Management

This package contains functions for setting errors with WinSetErrorInfo and logging appropriate warnings, exceptions, and error codes.

Four ascending severity levels are defined for error messages:

Warning The function detected a problem, took corrective action, and was able to complete processing successfully.

Error The function detected a problem for which no sensible corrective action is possible. The function is not executed and the system remains at the same state as when the function was requested.

Severe Error The function detected a problem from which the system cannot reestablish its state. The function has partially executed and the application must now make some corrective action to restore the system to a known state.

Unrecoverable Error The function detected an error from which it is impossible for the system to reestablish the state that it held at the time that the function was called. It is also impossible for the application to restore the system to a known state.

To use the GenPLib Exception-Management package, you must include:

    INCL_GENPLIB_ERROR

The following functions are included in the package:

GplErrSetDosError
GplErrSetError
GplErrSetSevereError
GplErrSetWarning
GplErrSetUnrecoverableError