hi,
i have a simple question regarding exception handling within xpl execution. we're faced with the following use-case:
in general is there any change to catch exception and prevent aborting the xpl based on certain conditions? thanks, alex -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Alex You can try using the oxf:exception-catcher
processor. It takes a single data input, which is the
output of the processor that you want to catch exceptions in, and it has a
single data output, which is either the output from your processor if there was
no exception, or is an exception document (root node is <exception> so
you can test for this) if there was one. So basically I’d do something like -
oxf:pipeline
processor to call your XPL that you want to catch exceptions in -
oxf:exception-catcher
monitoring the output of that -
p:choose
construct to check the output for the <exception> node and take action
appropriately Steve From: Alexander Witzigmann [mailto:[hidden email]]
hi,
is there any change to continue processing because in
our case this isn't really an error, its more or less an fyi,
-- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Administrator
|
In reply to this post by Alexander Witzigmann
Alex,
Currently XPL does not have error handling. An exception will simply stop the execution of the pipeline. You can try to use the oxf:exception-catcher processor though, which is kind of hack though. See this post: http://mail-archive.objectweb.org/ops-users/2005-11/msg00586.html -Erik Alexander Witzigmann wrote: > hi, > > i have a simple question regarding exception handling within xpl > execution. we're faced with the following use-case: > > * within a certain xpl we have to access graphic objects using > URLGenerator processor. > * if the resource isn't available the processor throws an exception > and xpl execution is aborted > > is there any change to continue processing because in our case this > isn't really an error, its more or less an fyi, > in general is there any change to catch exception and prevent aborting > the xpl based on certain conditions? > > thanks, > > alex Orbeon - XForms Everywhere: http://www.orbeon.com/blog/ -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
alex Erik Bruchez wrote: Alex, -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Free forum by Nabble | Edit this page |