Defines | |
| #define | SetErrPosn(e) _SetErrPosn(e,RCSID,__LINE__) |
| #define | SetErrPosnC(e) _SetErrPosnC(e,RCSID,__LINE__) |
| #define | SetErrPosnGoto(e) { err=SetErrPosn(e); goto Error; } |
| #define | SetErrPosnGotoC(e) { err=SetErrPosnC(e); goto Error; } |
Functions | |
| LIBEXPORT void | ClearLastErr (void) |
| LIBEXPORT const UNICODE * | GetErrDetails () |
| LIBEXPORT MISTRING & | GetErrString () |
| LIBEXPORT const UNICODE * | GetErrStrLine1UC (ERRVALUE errcode, int *errlevel=0) |
| LIBEXPORT const UNICODE * | GetErrStrUC (ERRVALUE errcode, int *errlevel=0) |
| LIBEXPORT ERRVALUE | GetLastErrCode () |
| LIBEXPORT bool | IsErrPosnDisabled () |
| LIBEXPORT void | SetErrDetails (const UNICODE *) |
| LIBEXPORT void | SetErrPosnDisable (void) |
| LIBEXPORT void | SetErrPosnEnable (void) |
|
|
Record an error code and it's position. Note, this is really a macro which calls an internal function and also passes it RCSID and __LINE__ For this to work, the following line must exist near the top of the module (just below the main comment block) #define RCSID "@(#)$Id: miodefns.h_v 1.177 2004/07/15 14:24:36 dwilliss Exp $"
Note: The example above shows what the RCSID for this include file looks like. If you're using RCS, it will fill in everything between the Definition at line 333 of file miodefns.h. |
|
|
Clear current error stack and set error position. Same as SetErrPosn(), but clears the error stack first.
Definition at line 340 of file miodefns.h. |
|
|
Set the current error position and goto Error label. Note, This is really a #define macro.
It does the same thing as SetErrPosn(), then does a Definition at line 349 of file miodefns.h. |
|
|
Clear the error stack, set the current error position and goto Error label.
Note, This is really a #define macro. It does the same thing as SetErrPosnC(), then does a Definition at line 356 of file miodefns.h. |
|
|
Clear the last reported error and the error stack.
|
|
|
Get the details string set by SetErrDetails(). Do not free the returned string. |
|
|
Get MISTRING reference to current error message. This allows subsequent use of the << operator on the string to substitute or append additional error values for -format or $-position codes. |
|
||||||||||||
|
Get the first line of the last error message (Unicode). Do not free the returned string.
|
|
||||||||||||
|
Get the last error message (Unicode). Do not free the returned string.
|
|
|
Get last error code.
|
|
|
Determine if error position recording is disabled.
|
|
|
Set the details string for an error. This can be used to report any extra details about an error. If set, the standard error dialog will have a "detial..." button which will let the user see the details. |
|
|
Disable error position reporting. This is important when cleaning up after an error. It often happens that if you get an error, you need to cleanup (close files, etc) before returning. If something in your cleanup code also causes an error, it will wipe out the error trace that you're trying to report. Therefore, always bracket cleanup code with SetErrPosnDiaable()/SetErrPosnEnable(). |
|
|
Reenable error position reporting.
|
1.3.8-20040913