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