/// <summary> /// Construteur Animal /// </summary> /// <param name="codeAnimal"></param> /// <param name="nomAnimal"></param> /// <param name="sexe"></param> /// <param name="couleur"></param> /// <param name="race"></param> /// <param name="tatouage"></param> /// <param name="antecedents"></param> /// <param name="archive"></param> /// <param name="client"></param> /// <exception cref="Exception"></exception> public Animal(Guid codeAnimal, string nomAnimal, eSexe sexe, string couleur, Race race, string tatouage, string antecedents, Boolean archive, Client client) { try { CodeAnimal = codeAnimal; NomAnimal = nomAnimal; Sexe = sexe; Couleur = couleur; Race = race; Tatouage = tatouage; Antecedents = antecedents; Archive = archive; Client = client; } catch (Exception e) { throw new Exception("Cet animal ne peut être cree avec ces valeurs\n" + e.Message, e); } }