Handling mySql exceptions into mysql driver v2