top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

What are common JDBC Exceptions?

0 votes
2,160 views
What are common JDBC Exceptions?
posted Aug 17, 2017 by anonymous

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

Some of the common JDBC Exceptions are:

java.sql.SQLException – This is the base exception class for JDBC exceptions.
java.sql.BatchUpdateException – This exception is thrown when Batch operation fails, but it depends on the JDBC driver whether they throw this exception or the base SQLException.
java.sql.SQLWarning – For warning messages in SQL operations.
java.sql.DataTruncation – when a data values is unexpectedly truncated for reasons other than its having exceeded MaxFieldSize.

answer Aug 18, 2017 by Neeraj Kumar
...