public void deleteUser(int idUser) throws DeleteException { try { User user = rep.getUser(idUser); rep.newTransaction(); rep.deleteUser(user); } catch (NotFoundException e) { logger.error(e.getMessage()); throw new DeleteException(e.getMessage()); } }