TD3: Add code skeleton for the hostel reservations though RMI.
[TD_SR.git] / TD3 / hotel / ExceptionNumReservation.java
CommitLineData
3a8c8f19
JB
1package hotel;\r
2\r
3/**\r
4 * Applications reparties\r
5 * TP - Exercice \r
6 * Chaine d'hotels\r
7 * \r
8 * Exception liee a un numero de reservation inexistant\r
9 * \r
10 * @author Toto\r
11 * @version 1.0\r
12 */\r
13public class ExceptionNumReservation extends Exception {\r
14\r
15 private static final long serialVersionUID = -6656122783469441587L;\r
16\r
17 String message;\r
18 \r
19 public ExceptionNumReservation() {\r
20 super();\r
21 message = "Erreur: numero de reservation incorrect";\r
22 }\r
23 \r
24 public String toString() {\r
25 return message;\r
26 }\r
27 \r
28}\r