<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Answers to: How to inject custom exception handler into Ivy</title><link>https://answers.axonivy.com/questions/2488/how-to-inject-custom-exception-handler-into-ivy</link><description>&lt;p&gt;Hi ivy team,&lt;/p&gt;
&lt;p&gt;Now, I need to use the component  &lt;strong&gt;p:ajaxExceptionHandler&lt;/strong&gt;  which required to configure in faces configuration file (faces-config.xml). &lt;/p&gt;
&lt;p&gt;When I looked at this file in Ivy designer, I saw that you have already declared your own custom exception handler as &lt;strong&gt;RuntimeLogExceptionHandlerFactory&lt;/strong&gt;. And inside that class, you always return &lt;strong&gt;RuntimeLogExceptionHandler&lt;/strong&gt; instance &lt;/p&gt;
&lt;p&gt;Note: you can refer this link to take an example: &lt;a href="https://wmarkito.wordpress.com/2012/04/05/adding-global-exception-handling-using-jsf-2-x-exceptionhandler/"&gt;https://wmarkito.wordpress.com/2012/04/05/adding-global-exception-handling-using-jsf-2-x-exceptionhandler/&lt;/a&gt; &lt;strong&gt;Or&lt;/strong&gt; primefaces user guide documentation in the 11.3 section (Exception handler)&lt;/p&gt;
&lt;p&gt;How can I inject my custom exception handler for using the component &lt;strong&gt;p:ajaxExceptionHandler&lt;/strong&gt; ???&lt;/p&gt;
&lt;p&gt;Please help me ivyteam, thank in advance.  :)&lt;/p&gt;
&lt;p&gt;Vuong Vu&lt;/p&gt;</description><atom:link href="https://answers.axonivy.com/questions/2488/how-to-inject-custom-exception-handler-into-ivy" rel="self"></atom:link><language>en</language><lastBuildDate>Mon, 13 Mar 2017 08:49:39 -0400</lastBuildDate><item><title>Answer by Alex Suter</title><link>https://answers.axonivy.com/questions/2488/how-to-inject-custom-exception-handler-into-ivy/2491</link><description>&lt;p&gt;One option would be to use the Error Start Event. This is already described here (also the approach to use a custom exception handler): &lt;a href="http://answers.axonivy.com/questions/1532/runtime-exception-handling"&gt;http://answers.axonivy.com/questions/1532/runtime-exception-handling&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Which ivy version do you use?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Alex Suter</dc:creator><pubDate>Mon, 13 Mar 2017 08:49:39 -0400</pubDate><guid>https://answers.axonivy.com/questions/2488/how-to-inject-custom-exception-handler-into-ivy/2491</guid></item></channel></rss>