catch: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
Lou Montana (talk | contribs) m (Text replacement - "\[\[Category:ArmA: Control Structures\|[a-zA-Z0-9 _]*\]\]" to "") |
||
(15 intermediate revisions by 10 users not shown) | |||
Line 1: | Line 1: | ||
{{Command|= | {{Command|Comments= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| arma | | | arma |Game name= | ||
|1.00| | |1.00|Game version= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| Processes code when an [[ | | Processes code when an [[Exception handling|exception]] is thrown in a [[try]] block. The exception caught can be found in the ''_exception'' variable. |DESCRIPTION= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| try-block '''catch''' code |= | | try-block '''catch''' code |SYNTAX= | ||
|p1= try-Block [[Exception Type]] |= | |p1= try-Block: [[Exception handling|Exception Type]] |PARAMETER1= | ||
|p2= code [[Code]] |= | |p2= code: [[Code]] |PARAMETER2= | ||
| [[Anything]] |= | | [[Anything]] |RETURNVALUE= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| [[Exception handling]] |= | | [[Exception handling]], [[try]], [[throw]] |SEEALSO= | ||
}} | }} | ||
Line 34: | Line 34: | ||
[[Category:Scripting Commands|CATCH]] | [[Category:Scripting Commands|CATCH]] | ||
[[Category:Scripting Commands ArmA|CATCH]] | [[Category:Scripting Commands ArmA|CATCH]] | ||
[[Category: | [[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]] | ||
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]] | |||
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]] | |||
[[Category:Command Group: Program Flow|CATCH]] | [[Category:Command Group: Program Flow|CATCH]] |
Revision as of 22:44, 19 September 2019
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: Exception Type
- code: Code
- Return Value:
- Anything
Examples
- Examples:
- Example needed
Additional Information
- See also:
- Exception handlingtrythrow
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