TD3: Add code skeleton for the hostel reservations though RMI.
[TD_SR.git] / TD3 / hotel / ExceptionChambresIndispo.java
diff --git a/TD3/hotel/ExceptionChambresIndispo.java b/TD3/hotel/ExceptionChambresIndispo.java
new file mode 100644 (file)
index 0000000..0cf161e
--- /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 la non disponibilite\r
+ * \r
+ * @author Toto\r
+ * @version 1.0\r
+ */\r
+public class ExceptionChambresIndispo extends Exception {\r
+\r
+       private static final long serialVersionUID = 5269715160970930660L;\r
+\r
+       String message;\r
+       \r
+       public ExceptionChambresIndispo() {\r
+               super();\r
+               message = "Erreur: chambre(s) indisponible(s)";\r
+       }\r
+       \r
+       public String toString() {\r
+               return message;\r
+       }\r
+       \r
+}\r