private int checkInteger(String integer) throws Exception {
    	try {
    		int res = Integer.parseInt(integer);
    		if(res<0)
    			throw new Exception("Valeur négative interdite");
    		return res;
    	} catch (NumberFormatException e) {
    		throw new Exception("Champ numerique non valide");
    	} // Integer.parseInt
	}