try: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
 
mNo edit summary
Line 5: Line 5:




<h2 style="color:#000066">''''' try''''' ''code''</h2>
<h2 style="color:#000066">''' try ''code'''''</h2>




'''Operand types:'''
'''Operand types:'''


code: [[Code]]
'''code:''' [[Code]]


'''Type of returned value:'''
'''Type of returned value:'''


Nothing
[[Nothing]]


'''Compatibility:'''
'''Compatibility:'''
Line 23: Line 23:


Defines try-catch structure. This is structured exception block. Any thrown exception in try block is caught in catch block. The structured exception block has following formtry //begin of try-catch block { //block, that can throw exception } catch{ //block, that process an exception. Exception is described in _exception variable };
Defines try-catch structure. This is structured exception block. Any thrown exception in try block is caught in catch block. The structured exception block has following formtry //begin of try-catch block { //block, that can throw exception } catch{ //block, that process an exception. Exception is described in _exception variable };
'''Example:'''

Revision as of 20:38, 29 June 2006



try code


Operand types:

code: Code

Type of returned value:

Nothing

Compatibility:

Version 2.60 required.

Description:

Defines try-catch structure. This is structured exception block. Any thrown exception in try block is caught in catch block. The structured exception block has following formtry //begin of try-catch block { //block, that can throw exception } catch{ //block, that process an exception. Exception is described in _exception variable };