Specifications
Error Handling
3-3
3
To simplify the coding for error checking and reporting, the error handling
system of the Image Processing Library supports a set of error macros. See
“Error Macros” for a detailed description of the error handling macros.
The iplError() function calls the default error reporting function. You
can change the default error reporting function by calling
iplRedirectError(). For more information, see the description of
iplRedirectError.
GetErrStatus
SetErrStatus
Gets and sets the error codes
that describe the type of
error being reported.
typedef int IPLStatus;
IPLStatus iplGetErrStatus();
void iplSetErrStatus(IPLStatus
status
);
status
Code that indicates the type of error
(see Table 3-1, “iplError() Status Codes”).
Discussion
The iplGetErrStatus() and iplSetErrStatus() functions get and set
the error status codes that describe the type of error being reported. See
“Status Codes” for descriptions of each of the error status codes.