saxonica.com

Try/Catch

The try/catch expression is implemented, but omitting the ability to declare variables to receive error information. The syntax is:


"try" "{" expression "}" 
( "catch" NameTest ('|' NameTest)* "{" expression "}" )+

The NameTest might be * to catch all errors, or err:FODC0002 to catch a specific error. The forms *:local and prefix:* are also supported. The namespace prefix err: is predeclared.

Next