xHarbour Reference Documentation > Function Reference |
Installs the default error code block.
ErrorSys( <bDefaultErrorBlock> ) --> NIL
The return value is always NIL.
ErrorSys() is an implicit INIT PROCEDURE called at startup of an xHarbour application. It installs the default error code block used for standard error handling. ErrorSys() is programmed in the ERRORSYS.PRG module and should not be called at runtime of an xHarbour application. To replace the default error code block, call the ErrorBlock() function.
Since ErrorSys() is implicitely called it must be present in an xHarbour application. The only reason to program a user defined ErrorSys() routine is when the entire ERRORSYS.PRG module is replaced by a user-defined module.
See also: | BEGIN SEQUENCE, Break(), Error(), ErrorBlock(), ErrorLevel(), Throw(), TRY...CATCH |
Category: | Error functions |
Header: | error.ch |
Source: | rtl\ errorsys.prg |
LIB: | xhb.lib |
DLL: | xhbdll.dll |
http://www.xHarbour.com