Caché ObjectScript Reference
$THROWOBJ
[Back] [Next]
   
Server:docs2
Instance:LATEST
User:UnknownUser
 
-
Go to:
Search:    

Contains the oref from an unsuccessful THROW.
Synopsis
$THROWOBJ
Description
$THROWOBJ contains the object reference (oref) thrown by the most recent unsuccessful THROW operation. Caché writes an oref to $THROWOBJ when it issues a <THROW> error. Commonly, this occurs when attempting to issue a THROW when not inside a TRY or CATCH block.
A successful THROW operation resets $THROWOBJ to the empty string.
Setting $THROWOBJ
You can also explicitly reset $THROWOBJ as follows:
  SET $THROWOBJ=""
$THROWOBJ cannot be set to any value other than the empty string using the SET command. Attempting to do so results in a <ILLEGAL VALUE> error.
See Also