<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Call getNextException in talend in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Call-getNextException-in-talend/m-p/2368364#M131637</link>
    <description>Unfortunately Talend has decided not to do this in its code generator. Thats because we have to help our self.&lt;BR /&gt;I assume you have a t&amp;lt;anydb&amp;gt;Output component.&lt;BR /&gt;Use the flow Main and extend the flow to a tJavaFlex.&lt;BR /&gt;.... tOracleOutput --main--&amp;gt; tJavaFlex&lt;BR /&gt;The tJavaFlex has 3 code parts: Begin (here we will add some code), Main (will remain empty) and End (here we will add some code)&lt;BR /&gt;For the Begin part:&lt;BR /&gt;&lt;PRE&gt;try {&lt;/PRE&gt;&lt;BR /&gt;For the End part:&lt;BR /&gt;&lt;PRE&gt;} catch (Exception e) {&lt;BR /&gt;    if (e instanceof java.sql.SQLException) {&lt;BR /&gt;        java.sql.SQLException ne = ((java.sql.SQLException) e).getNextException();&lt;BR /&gt;        if (ne != null) {&lt;BR /&gt;            throw new Exception(e.getMessage() + ", next:" + ne.getMessage(), e);&lt;BR /&gt;        } else {&lt;BR /&gt;            throw e;&lt;BR /&gt;        }&lt;BR /&gt;    } else {&lt;BR /&gt;        throw e;&lt;BR /&gt;    }&lt;BR /&gt;}&lt;/PRE&gt;</description>
    <pubDate>Mon, 28 Apr 2014 20:13:24 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-04-28T20:13:24Z</dc:date>
    <item>
      <title>Call getNextException in talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Call-getNextException-in-talend/m-p/2368363#M131636</link>
      <description>Hi,&lt;BR /&gt;Does anyone know how to call the getNextException in talend jobs to see the actual error message?&lt;BR /&gt;Regards</description>
      <pubDate>Mon, 28 Apr 2014 18:57:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Call-getNextException-in-talend/m-p/2368363#M131636</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-04-28T18:57:22Z</dc:date>
    </item>
    <item>
      <title>Re: Call getNextException in talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Call-getNextException-in-talend/m-p/2368364#M131637</link>
      <description>Unfortunately Talend has decided not to do this in its code generator. Thats because we have to help our self.&lt;BR /&gt;I assume you have a t&amp;lt;anydb&amp;gt;Output component.&lt;BR /&gt;Use the flow Main and extend the flow to a tJavaFlex.&lt;BR /&gt;.... tOracleOutput --main--&amp;gt; tJavaFlex&lt;BR /&gt;The tJavaFlex has 3 code parts: Begin (here we will add some code), Main (will remain empty) and End (here we will add some code)&lt;BR /&gt;For the Begin part:&lt;BR /&gt;&lt;PRE&gt;try {&lt;/PRE&gt;&lt;BR /&gt;For the End part:&lt;BR /&gt;&lt;PRE&gt;} catch (Exception e) {&lt;BR /&gt;    if (e instanceof java.sql.SQLException) {&lt;BR /&gt;        java.sql.SQLException ne = ((java.sql.SQLException) e).getNextException();&lt;BR /&gt;        if (ne != null) {&lt;BR /&gt;            throw new Exception(e.getMessage() + ", next:" + ne.getMessage(), e);&lt;BR /&gt;        } else {&lt;BR /&gt;            throw e;&lt;BR /&gt;        }&lt;BR /&gt;    } else {&lt;BR /&gt;        throw e;&lt;BR /&gt;    }&lt;BR /&gt;}&lt;/PRE&gt;</description>
      <pubDate>Mon, 28 Apr 2014 20:13:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Call-getNextException-in-talend/m-p/2368364#M131637</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-04-28T20:13:24Z</dc:date>
    </item>
  </channel>
</rss>

