You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Martini Roberto <ma...@cesbe.it> on 2004/03/19 14:32:58 UTC

Retrieve exception message in error handling

Hi everybody
	I've made a transformer to process the result of a call to a servlet (axis). The transformer parses the message and, if the service response contains an error with his relative message (ex. "user already exists!"), it throws an exception. Then in the sitemap I'm able to catch that exception but I can't retrieve the message in it: I would like to chreate a page containing the error message, but I'm only able to send a generic error page becase I don't know how to reach the exception message.
	Is there a way to do this?
Thanks in advance

Roberto Martini


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: Retrieve exception message in error handling

Posted by Askild Aaberg Olsen <as...@xangeli.com>.
Have a look at the notifying generator, sample usage in the bottom of the
root Cocoon sitemap.

Askild
-

Martini Roberto wrote:
> Then in the sitemap I'm able to catch that exception but I 
> can't retrieve the message in it: I would like to chreate a 
> page containing the error message, but I'm only able to send 
> a generic error page becase I don't know how to reach the 
> exception message.
> 	Is there a way to do this?
> Thanks in advance
> 
> Roberto Martini
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
> 
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org