try: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
m (try controls the flow)
Line 1: Line 1:
[[Category:Scripting Commands|TRY]]
[[Category:Scripting Commands|TRY]]
[[Category:Scripting Commands ArmA|TRY]]
[[Category:Scripting Commands ArmA|TRY]]
[[Category:Armed Assault: Control Flows|TRY]]





Revision as of 05:46, 23 July 2006


try code


Operand types:

code: Code

Type of returned value:

Nothing

Compatibility:

Version 2.60 required.

Description:

Defines try-catch structure.

This is structured exception block.

Any thrown exception in try block is caught in catch block.

The structured exception block has following format:


try //begin of try-catch block { //block, that can throw exception }

catch { //block, that processes an exception}.

Exception is described in _exception variable.