<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Answers to: Runtime Exception Handling</title><link>https://answers.axonivy.com/questions/1532/runtime-exception-handling</link><description>&lt;p&gt;Hello ivy-team, 
is it possible to handle unexpected Exceptions like RuntimeExceptions?
For example, we would like to send an email with all exception information to our developer team and display a specific error message.
We would like to display this message in the current user dialog (JSF) and not redirect to an other error page.
I tried to create a CustomExceptionHandlerFactory and set this class as exception-handler-factory in the faces-config.xml. 
Doing this in the Project webContent/WEB-INF/faces-config.xml has no effect. 
Doing this in the Designer webapps/ivy/WEB-INF/faces-config.xml throws a ClassNotFoundException.
Could you please explain how to do this or is there a nicer way?&lt;/p&gt;</description><atom:link href="https://answers.axonivy.com/questions/1532/runtime-exception-handling" rel="self"></atom:link><language>en</language><lastBuildDate>Mon, 02 Nov 2015 09:01:56 -0500</lastBuildDate><item><title>Answer by Reguel Wermelinger</title><link>https://answers.axonivy.com/questions/1532/runtime-exception-handling/1534</link><description>&lt;p&gt;&lt;strong&gt;With the Säntis 6.0 release&lt;/strong&gt; &lt;/p&gt;
&lt;p&gt;you can easily handle this situation by putting an ErrorStartEvent into the Html Dialogs and then implement the error handling flow: send a mail, show an error dialog in the same context.
See: &lt;a href="http://release.axonivy.com/"&gt;http://release.axonivy.com/&lt;/a&gt; or try it with the latest sprint increment &lt;a href="http://www.ivyteam.ch/flatpress/?page=download_last_increment"&gt;http://www.ivyteam.ch/flatpress/?page=download_last_increment&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;For 5.1 and later&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;I guess the apporach with you own exception-handler-factory in the faces-config.xml should work. Class Not Found exceptions arise as the factory is implemented within your ivy project and the webApp classloader has no access to it. You can work around the problem by putting compiled classes into &lt;code&gt;webapps/ivy/WEB_INF/classes&lt;/code&gt; directory or as jar into &lt;code&gt;webapps/ivy/WEB_INF/lib&lt;/code&gt; directory. See similiar classes hacks here: &lt;a href="http://answers.axonivy.com/questions/10/can-i-use-primepush-in-xpert-ivy"&gt;http://answers.axonivy.com/questions/10/can-i-use-primepush-in-xpert-ivy&lt;/a&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Reguel Wermelinger</dc:creator><pubDate>Mon, 02 Nov 2015 09:01:56 -0500</pubDate><guid>https://answers.axonivy.com/questions/1532/runtime-exception-handling/1534</guid></item></channel></rss>