Search in sources :

Example 1 with UtilisateurInexistantException

use of exceptions.UtilisateurInexistantException in project Synthese_2BIN by TheYoungSensei.

the class GestionEncheres method rechercherUtilisateur.

private Utilisateur rechercherUtilisateur(Utilisateur utilisateur) throws UtilisateurInexistantException {
    checkObject(utilisateur);
    Utilisateur uSt = utilisateurs.get(utilisateur.getNum());
    if (uSt == null)
        throw new UtilisateurInexistantException();
    return uSt;
}
Also used : UtilisateurInexistantException(exceptions.UtilisateurInexistantException) Utilisateur(domaine.Utilisateur)

Aggregations

Utilisateur (domaine.Utilisateur)1 UtilisateurInexistantException (exceptions.UtilisateurInexistantException)1