Specifications

Intel
®
Image Processing Library Reference Manual
3-4
3
GetErrMode
SetErrMode
Gets and sets the error
modes that describe how an
error is processed.
#define IPL_ErrModeLeaf 0
#define IPL_ErrModeParent 1
#define IPL_ErrModeSilent 2
int iplGetErrMode();
void iplSetErrMode(int
errMode
);
errMode
Indicates how errors will be processed. The
possible values for
errMode
are
IPL_ErrModeLeaf, IPL_ErrModeParent,or
IPL_ErrModeSilent.
Discussion
NOTE. This section describes how the default error handler handles
errors for applications which run in console mode. If your application has
a custom error handler, errors will be processed differently than described
below
The iplSetErrMode() function sets the error modes that describe how
errors are processed. The defined error modes are
IPL_ErrModeLeaf,
IPL_ErrModeParent,andIPL_ErrModeSilent.
If you specify
IPL_ErrModeLeaf, errors are processed in the “leaves” of
the function call tree. The
iplError() function (in console mode) prints
an error message describing
status
,
func
,and
context
. It then
terminates the program.