Sukanya
Sukanya

Reputation: 71

Batch Insert Exception in DB2

I get a batch insert exception having ERRORCODE "-4229" and SQLSTATE null on executing the Prepared Statement. getNextException() didn't work either.

Upvotes: 1

Views: 819

Answers (1)

mustaccio
mustaccio

Reputation: 18945

According to the manual, you should use SQLException.getMessage() to obtain the error details.

Upvotes: 2

Related Questions