Configuration.getConnectionPool().executeInsertOrUpdate(qp);
}
catch( SQLException e )
{
Logger.error("Role record couldn't be deleted", e);
throw new RoleDeleteException(
"SQLException prevented role record deleted: "
+ e.getMessage());
}
}
else
{
// its not ok to delete
throw new RoleDeleteException( "\n System couldn't delete role. \n");
}
}
catch( SQLException e1 )
{
Logger.debug( "\n Database error occurred while deleting role. \n", e1);
throw new RoleDeleteException( "\n System couldn't delete role. \n");
}
catch(DataTypeMismatchException dtmmex)
{
Logger.debug("\n\n data type mismatch exception occurred trying to convert counter - PSQLRoleDAO.deleteRole() \n");
}