exception handling within xpl execution

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

exception handling within xpl execution

Alexander Witzigmann
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





--
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
Reply | Threaded
Open this post in threaded view
|

RE: exception handling within xpl execution

Stephen Bayliss

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]]
Sent: 30 August 2006 13:03
To: [hidden email]
Subject: [ops-users] exception handling within xpl execution

 

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

 


--
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
Reply | Threaded
Open this post in threaded view
|

Re: exception handling within xpl execution

Erik Bruchez
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
Reply | Threaded
Open this post in threaded view
|

Re: exception handling within xpl execution

Alexander Witzigmann
thanks eric and steve for pointing this out. as a workaround it works so far,

alex



Erik Bruchez wrote:
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


-- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: [hidden email] For general help: [hidden email] ObjectWeb mailing lists service home page: http://www.objectweb.org/wws


--
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