catch: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
[[Category:Scripting Commands|CATCH]]
{{Command|= Comments
[[Category:Scripting Commands ArmA|CATCH]]
____________________________________________________________________________________________
[[Category:Armed Assault: Control Flows|CATCH]]
 
| ofp |= Game name
 
|1.00|= Game version
____________________________________________________________________________________________


| Processes code when an [[exception]] is thrown in a [[try]] block. The exception caught can be found in the _exception variable. |= Description
____________________________________________________________________________________________


<h2 style="color:#000066">'''''try-block'' catch ''code'''''</h2>
| try-block '''catch''' code |= Syntax


|p1= try-Block [[]] |= Parameter 1


'''Operand types:'''
|p2= code [[Code]] |= Parameter 2


'''try-Block''': ?
| [[Anything]] |= Return value
____________________________________________________________________________________________


'''code''': [[Code]]
|  |= See also


'''Type of returned value:'''
}}


[[Anything]]
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->


'''Description:'''
<!-- Note Section END -->
</dl>


Processes code when an [[Exception handling|exception]] is thrown in a [[try]] block.
<h3 style="display:none">Bottom Section</h3>


The exception caught can be found in the _exception variable.
[[Category:Scripting Commands|CATCH]]
[[Category:Scripting Commands ArmA|CATCH]]
[[Category:Armed Assault: Control Flows|CATCH]]

Revision as of 22:39, 1 August 2006

Hover & click on the images for description

Description

Description:
Processes code when an exception is thrown in a try block. The exception caught can be found in the _exception variable.
Groups:
Uncategorised

Syntax

Syntax:
try-block catch code
Parameters:
try-Block [[]]
code Code
Return Value:
Anything

Examples

Examples:
Example needed

Additional Information

See also:
See also needed

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note

Notes

Bottom Section