TD3: Add code skeleton for the hostel reservations though RMI.
[TD_SR.git] / TD3 / hotel / ExceptionNumReservation.java
diff --git a/TD3/hotel/ExceptionNumReservation.java b/TD3/hotel/ExceptionNumReservation.java
new file mode 100644 (file)
index 0000000..cb8dbde
--- /dev/null
@@ -0,0 +1,28 @@
+package hotel;\r
+\r
+/**\r
+ * Applications reparties\r
+ * TP - Exercice \r
+ * Chaine d'hotels\r
+ * \r
+ * Exception liee a un numero de reservation inexistant\r
+ * \r
+ * @author Toto\r
+ * @version 1.0\r
+ */\r
+public class ExceptionNumReservation extends Exception {\r
+\r
+       private static final long serialVersionUID = -6656122783469441587L;\r
+\r
+       String message;\r
+       \r
+       public ExceptionNumReservation() {\r
+               super();\r
+               message = "Erreur: numero de reservation incorrect";\r
+       }\r
+       \r
+       public String toString() {\r
+               return message;\r
+       }\r
+       \r
+}\r