W3C home > Mailing lists > Public > public-qt-comments@w3.org > July 2009

[Bug 7087] syntax errors in try-catch examples

From: <bugzilla@wiggum.w3.org>
Date: Tue, 14 Jul 2009 16:06:07 +0000
To: public-qt-comments@w3.org
Message-Id: <E1MQkW7-0003wp-C8@wiggum.w3.org>
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:14:57 GMT