[Bug 7087] syntax errors in try-catch examples

http://www.w3.org/Bugs/Public/show_bug.cgi?id=7087





--- Comment #2 from Jonathan Robie <jonathan.robie@redhat.com>  2009-07-14 16:06:07 ---
Ah, I see the problem - the examples attempt to catch static errors:

#

A try/catch expression without a CatchErrorList catches any error:


The CatchErrorList in this try/catch expression specifies that only
err:XPST0051 is caught:

try {
    $x cast as integer
}
catch err:XPST0051 {
    0
}

#

The CatchErrorList in this try/catch expression specifies that errors
err:XPST0051 and err:XPST0032 are caught:

try {
    $x cast as integer
}
catch err:XPST0051 | err:XPST0032 {
    0
}


I'll fix that, you can't catch a static error.


-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Tuesday, 14 July 2009 16:06:17 UTC