Is it possible to modify the severity of SYSTEM errors using the ErrorAdd function?
Some errors that were previously reported as Winsock errors are now reported as System errors, for example:
WinSock: 10061 - Connection refused, host="YourHost:80", attempts=3
is now reported as
SYSTEM: 10061 - No connection could be made because the target machine actively refused it.
To modify the severity using the ErrorAdd function in previous versions would have meant using this format:
ErrorAdd(FACILITY_WINSOCK, 10061, SEVERITY_INFORMATIONAL);
However as 10061 errors can now be reported as a SYSTEM errors and there is no parameter for FACILITY_SYSTEM listed in the Help use following format instead
ErrorAdd(NULL, 10061, SEVERITY_TRANS_EXIT);
i.e. replace the FACILITY parameter with NULL