catch: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Bot: Reverted to revision 91642 by Badguy360th_bi_wiki on 2015-08-30T17:01:11Z)
m (Text replacement - "|= Game name" to "|Game name=")
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Command|= Comments
{{Command|Comments=
____________________________________________________________________________________________
____________________________________________________________________________________________


| arma |= Game name
| arma |Game name=


|1.00|= Game version
|1.00|Game version=
____________________________________________________________________________________________
____________________________________________________________________________________________


| Processes code when an [[Exception handling|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 handling|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]], [[try]], [[throw]] |= See also
| [[Exception handling]], [[try]], [[throw]] |SEEALSO=  


}}
}}

Revision as of 03:32, 31 August 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