XES - Programmers Guide - nodeTry

for information about XES schema see these pages.

Try

Allows action to be taken on error. Exception defines error to look for, catchBlock is excecuted if found

	<xs:complexType name="tryType">
<xs:sequence>
<xs:element name="block" type="blockType"/>
<xs:element name="catchBlock" type="catchBlockType"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="catchBlockType">
<xs:sequence>
<xs:element name="block" type="blockType"/>
<xs:element name="exception" type="xs:string"/>
</xs:sequence>
</xs:complexType>

Java

try {
...
} catch {
case ioe: IOException =>
... // more specific cases first !
case e: Exception =>
...
}

Scala

try {
...
} catch {
case ioe: IOException =>
... // more specific cases first !
case e: Exception =>
...
}

 

 

metadata block
see also:

 

Correspondence about this page

This site may have errors. Don't use for critical systems.

Copyright (c) 1998-2023 Martin John Baker - All rights reserved - privacy policy.