swirl
Guide to OmniMark 7   OmniMark home
docs home 
IndexConceptsTasksSyntaxLibrariesLegacy LibrariesErrors
 
    Related Concepts  
operator  

is catchable

 

 

Return type: Boolean
Returns:       

Returns true if the named catch is active at this point in the program, and false otherwise. Replacing is with isnt will reverse the results.



Syntax
  named-throw (is | isnt) catchable


Purpose

Tests whether the named catch is active at this point in the program. A catch is active only when it is in a scope that is currently executing.

The named catch can be any of the following:

A compile-time error results if the named catch is not declared within the program.

The following code uses is catchable to see if there is a currently active catch named empty-recordset before throwing to it:

  do when empty-recordset is catchable
     throw empty-recordset
  else
     log-message "Received an empty record-set."
     halt with 1
  done

      Related Concepts
   Catch and throw
 
 

Top [ INDEX ] [ CONCEPTS ] [ TASKS ] [ SYNTAX ] [ LIBRARIES ] [ LEGACYLIBRARIES ] [ ERRORS ]

OmniMark 7.1.2 Documentation Generated: June 28, 2005 at 5:45:21 pm
If you have any comments about this section of the documentation, send email to [email protected]

Copyright © Stilo Corporation, 1988-2005.