throw: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (throw controls the flow)
No edit summary
Line 1: Line 1:
[[Category:Scripting Commands|THROW]]
{{Command|= Comments
[[Category:Scripting Commands ArmA|THROW]]
____________________________________________________________________________________________
[[Category:Armed Assault: Control Flows|THROW]]


| arma |= Game name


<h2 style="color:#000066">''' throw ''expression'''''</h2>
|2.6|= Game version
____________________________________________________________________________________________


| Throws an exception. The exception is processed by first catch block. See [[Try]]. |= Description
____________________________________________________________________________________________


'''Operand types:'''
| '''throw''' expression |= Syntax


expression: [[Anything]]
| [[Nothing]] |= Return value
____________________________________________________________________________________________
 
|x1= <pre>throw "invalid argument"</pre> |= Example 1
____________________________________________________________________________________________


'''Type of returned value:'''
|  |= See also


[[Nothing]]
}}


'''Compatibility:'''
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->


Version 2.60 required.
<!-- Note Section END -->
</dl>


'''Description:'''
<h3 style="display:none">Bottom Section</h3>
 
[[Category:Scripting Commands|THROW]]
Throws an exception. The exception is processed by first catch block. See [[try|Try]].
[[Category:Scripting Commands ArmA|THROW]]
 
[[Category:Armed Assault: Control Flows|THROW]]
 
'''Example:'''
 
'''throw''' "invalid argument"

Revision as of 22:54, 1 August 2006

-wrong parameter ("Arma") defined!-2.6
Hover & click on the images for description

Description

Description:
Throws an exception. The exception is processed by first catch block. See Try.
Groups:
Uncategorised

Syntax

Syntax:
throw expression
Return Value:
Nothing

Examples

Example 1:
throw "invalid argument"

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