throw: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
 
mNo edit summary
Line 22: Line 22:
'''Description:'''
'''Description:'''


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


'''Example:'''
'''Example:'''


'''throw''' "invalid argument"
'''throw''' "invalid argument"

Revision as of 22:50, 28 June 2006



throw expression


Operand types:

expression: Anything

Type of returned value:

Nothing

Compatibility:

Version 2.60 required.

Description:

Throws an exception. The exception is processed by first catch block. See Try.

Example:

throw "invalid argument"