Sunday November 19, 2017

       
      SteelArrow Basics
      SteelArrow Tags
  SteelArrow Functions
  SteelArrow Objects
  Advanced Topics
  WAS Overview
   
   
       
      Overview
  Code Samples
  Site Search
   
   
   


Get SteelArrow!     
  <SATRY>    
 
 
 
Return to Tag List
 
The TRY tag allows a developer to attempt gracful recovery when an error could possibly be encountered. The try tag is usually used in conjunction with THROW and CATCH blocks.

Note: Catch types are: SCRIPT, PARSER, DATABASE, SECURITY, FILE, FTP, USER and ALL.

 
Attributes:
None.

 
The following is an example of a TRY statement;
 
<SATRY> <!--- TRY something --->
   <SAQUERY DATASOURCE="someDS">
      INSERT INTO table(col1,col2)
        VALUES( '#PARAM.value1#', '#PARAM.value2#' )
   </SAQUERY>

   <!-- Not necessary - illustration only --->
   <SATHROW MESSAGE="Everything was successful!!">
</SATRY>

<SACATCH TYPE="DATABASE">
   There was a database error!<BR>
</SACATCH>

<SACATCH TYPE="SECURITY">
   There was a security error!<BR>
</SACATCH>

<SACATCH TYPE="USER">
   <!--- Thrown message caught here (if no errors) --->
   <SAOUTPUT VALUE=ERROR.MESSAGE><BR>
</SACATCH>





Copyright © 1998-2004 Tomahawk Technologies Inc.
Privacy Policy