W3C home > Mailing lists > Public > public-xml-processing-model-wg@w3.org > July 2007

Re: Catching errors

From: Rui Lopes <rlopes@di.fc.ul.pt>
Date: Tue, 10 Jul 2007 15:19:08 +0100
Message-ID: <4693955C.7070401@di.fc.ul.pt>
To: public-xml-processing-model-wg@w3.org

Norman Walsh wrote:
> |> I don't know. Someone's going to suggest p:finally if we do this.
> |> (Actually, it's already been suggested to me, but...)
> |
> | I'm not sure if p:finally would be useful outside corner cases, but I'd give it
> | a chance. Maybe an example would clarify this.
> I can't think of one, but I'm not sure I've ever used "finally" in a
> Java program either. Given that steps are self-contained, I really
> don't think we need a finally. Though, I suppose someone will raise
> the case of an extension step that opens a database and needs a
> finally to close it.

I guess it would imply having something like px:open-database and 
px:close-database extension steps. As steps are atomic, that should be 
handled internally by the component. So I'm with you on this, it looks 
definitely like a corner case.

Received on Tuesday, 10 July 2007 14:19:21 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:32:43 UTC