This content has been marked as final.
Show 3 replies
-
1. Re: JDBCItemReader/Writer Exception Handler
cfang May 4, 2017 2:01 PM (in response to joao.santana)I"ll check if we can get the more specific cause exception.
Consider throwing more specific exceptions instead of BatchUpdateException in JdbcItemWriter
-
2. Re: JDBCItemReader/Writer Exception Handler
cfang May 6, 2017 2:18 PM (in response to cfang)The above issue is fixed now. To achieve what you described in the original post, it really depends on the target DBMS and jdbc driver, whether it throws fined-grained exception types. For instance, the database engine and driver may just throw the same exception for all PK, FK & UK errors.
-
3. Re: JDBCItemReader/Writer Exception Handler
joao.santana Jun 10, 2017 12:54 PM (in response to cfang)Great solution! i'll test it!