xHarbour Reference Documentation > Function Reference xHarbour Developers Network  

ErrorSys()

Installs the default error code block.

Syntax

ErrorSys( <bDefaultErrorBlock> ) --> NIL

Arguments

<bDefaultErrorBlock>
A code block accepting one parameter must be passed. The code block must call the default error handling routine and pass the received parameter on to it.

Return

The return value is always NIL.

Description

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.

Info

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


Copyright © 2006-2007 xHarbour.com Inc. All rights reserved.
http://www.xHarbour.com
Created by docmaker.exe