xHarbour Reference Documentation > Function Reference xHarbour Developers Network  

Throw()

Throws an exception.

Syntax

Throw( <oError> ) --> NIL

Arguments

<oError>
This parameter must be an Error() object.

Return

The return value is NIL.

Description

Function Throw() is part of xHarbour's error handling system and is used in conjunction with a TRY...CATCH statement. The error object passed to Throw() is forwarded to the CATCH option, if present. There, the information stored in the error object can be evaluated for error handling.

Info

See also:BEGIN SEQUENCE, Error(), ErrorBlock(), ErrorNew(), TRY...CATCH
Category: Error functions , Debug functions , xHarbour extensions
Source:vm\throw.c
LIB:xhb.lib
DLL:xhbdll.dll


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