<?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 hand an occuring exception to an Ivy-Exception handler?</title><link>https://answers.axonivy.com/questions/29/how-to-hand-an-occuring-exception-to-an-ivy-exception-handler</link><description>&lt;p&gt;I want to handle exceptions occuring in an external java class. The class is called in a script step. Now I want to pass this to an Exception Start in the Process Model. Can I achive this?&lt;/p&gt;
&lt;p&gt;Script Step:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt; try {
        out.geoCodeResponse = geoCode.getXMLByGoogle(address);          
        } catch (Exception e) {
        // Pass exception to exception start
    }
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Thanks for any help!&lt;/p&gt;
&lt;p&gt;Edit:
It just came accross my mind to set an ivy-variable error:Boolean and set a condition to choose a different process path in error case. But regardless this fact, is it possible to start an Ivy-Exception start from a try-catch-block?&lt;/p&gt;</description><atom:link href="https://answers.axonivy.com/questions/29/how-to-hand-an-occuring-exception-to-an-ivy-exception-handler" rel="self"></atom:link><language>en</language><lastBuildDate>Thu, 24 Oct 2013 17:16:50 -0400</lastBuildDate><item><title>Answer by Reto Weiss</title><link>https://answers.axonivy.com/questions/29/how-to-hand-an-occuring-exception-to-an-ivy-exception-handler/37</link><description>&lt;p&gt;This is not possible on the Script Step at the moment. There are multiple feature requests open for this problem. See issues #23146, #22739, #17874. &lt;/p&gt;
&lt;p&gt;As workaround you can use a PI process element. This element allows you to configure an exception element that is called if the PI code fails. The PI code itself must be written in Java as a PI bean.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Reto Weiss</dc:creator><pubDate>Thu, 24 Oct 2013 17:16:50 -0400</pubDate><guid>https://answers.axonivy.com/questions/29/how-to-hand-an-occuring-exception-to-an-ivy-exception-handler/37</guid></item></channel></rss>