catch: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (VBS2 scripting category removal)
m (template:command argument fix)
(7 intermediate revisions by 5 users not shown)
Line 7: Line 7:
____________________________________________________________________________________________
____________________________________________________________________________________________


| Processes code when an [[Exception_Type|exception]] is thrown in a [[try]] block. The exception caught can be found in the _exception variable. |= Description
| 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 |= Syntax
| try-block '''catch''' code |SYNTAX=


|p1= try-Block [[Exception Type]] |= Parameter 1
|p1= try-Block: [[Exception handling|Exception Type]] |PARAMETER1=


|p2= code [[Code]] |= Parameter 2
|p2= code: [[Code]] |PARAMETER2=


| [[Anything]] |= Return value
| [[Anything]] |RETURNVALUE=
____________________________________________________________________________________________
____________________________________________________________________________________________


| [[Exception handling]] |= See also
| [[Exception handling]], [[try]], [[throw]] |SEEALSO=  


}}
}}
Line 35: Line 35:
[[Category:Scripting Commands ArmA|CATCH]]
[[Category:Scripting Commands ArmA|CATCH]]
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]]
[[Category:ArmA: Control Structures|CATCH]]
[[Category:ArmA: Control Structures|CATCH]]
[[Category:Command Group: Program Flow|CATCH]]
[[Category:Command Group: Program Flow|CATCH]]

Revision as of 15:35, 7 April 2019

-wrong parameter ("Arma") defined!-1.00
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: 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

Notes

Bottom Section