![]() |
NORSYS SOFTWARE © 2002 | NETICA API | C   VERSION   2.15  |
void ClearErrors_ns ( | environ_ns* env, errseverity_ns severity ) |
Removes all errors recorded with environment env which are as serious as severity, or less serious.
severity must be one of NOTHING_ERR, REPORT_ERR, NOTICE_ERR, WARNING_ERR, ERROR_ERR, XXX_ERR (for a description of these see ErrorSeverity_ns). Pass ERROR_ERR to clear them all (except for XXX_ERR errors, which you probably shouldn't be clearing).
The memory used by the error reports is freed, so if you previously used GetError_ns to obtain pointers to some of them, you must not use these pointers any more (for example, don't try to call ClearError_ns, or ErrorMessage_ns with one of them).
In a multi-threaded environment, this function will only clear errors caused by the current thread.
The name of this function is very similar to ClearError_ns, but hopefully there won't be any confusion since its arguments are so different.
Remember that just because you clear away the error reports doesn't mean that the problems that caused them have necessarily gone away!
Version:
See also:
ClearError_ns | Clears just a single error |