throw: Difference between revisions
Jump to navigation
Jump to search
m (throw controls the flow) |
No edit summary |
||
Line 1: | Line 1: | ||
{{Command|= Comments | |||
____________________________________________________________________________________________ | |||
| arma |= Game name | |||
|2.6|= Game version | |||
____________________________________________________________________________________________ | |||
| Throws an exception. The exception is processed by first catch block. See [[Try]]. |= Description | |||
____________________________________________________________________________________________ | |||
''' | | '''throw''' expression |= Syntax | ||
| [[Nothing]] |= Return value | |||
____________________________________________________________________________________________ | |||
|x1= <pre>throw "invalid argument"</pre> |= Example 1 | |||
____________________________________________________________________________________________ | |||
| |= See also | |||
}} | |||
<h3 style="display:none">Notes</h3> | |||
<dl class="command_description"> | |||
<!-- Note Section BEGIN --> | |||
<!-- Note Section END --> | |||
</dl> | |||
<h3 style="display:none">Bottom Section</h3> | |||
[[Category:Scripting Commands|THROW]] | |||
[[Category:Scripting Commands ArmA|THROW]] | |||
[[Category:Armed Assault: Control Flows|THROW]] | |||
Revision as of 22:54, 1 August 2006
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