Commit | Line | Data |
---|---|---|
321de3f1 JB |
1 | package hotel; |
2 | ||
3 | /** | |
4 | * Applications reparties | |
5 | * TP - Exercice | |
6 | * Chaine d'hotels | |
7 | * | |
8 | * Exception liee a la non disponibilite | |
9 | * | |
10 | * @author Toto | |
11 | * @version 1.0 | |
12 | */ | |
13 | public class ExceptionChambresIndispo extends Exception { | |
14 | ||
15 | private static final long serialVersionUID = 5269715160970930660L; | |
16 | ||
17 | String message; | |
18 | ||
19 | public ExceptionChambresIndispo() { | |
20 | super(); | |
21 | message = "Erreur: chambre(s) indisponible(s)"; | |
22 | } | |
23 | ||
24 | public String toString() { | |
25 | return message; | |
26 | } | |
27 | ||
28 | } |