I have a situation in java where in:
while(resultset.next()){
try{
//some executable prepared statements written
}
catch(MySQLIntegrityConstraintViolationException ex){
//block2
}
catch(SQLException ex){
//block1
}
}
now here , what I am trying to do is that if an MySQLIntegrityConstraintViolationException is seen, I have to skip it and just continue with the next record...
I am unable to find a mechanism to do this.
Please could someone suggest what should be done so that the exception is ignored.
Please let me know..Thank you very much in advance.