you can also do this without error by enclosing the
statement.executeUpdate or whatever u r using directly
in the try and catch... e.g.
try // main block for connection establishment etc.
{
.....connection
.. prepared Statement
loop {
try {
execute statement;
} catch (SQLException e){}
}
} catch ()
{
}