]> git.mxchange.org Git - shipsimu.git/blobdiff - ship-simu/application/ship-simu/exceptions/class_EmptyStructuresListException.php
Initial import of current development status
[shipsimu.git] / ship-simu / application / ship-simu / exceptions / class_EmptyStructuresListException.php
diff --git a/ship-simu/application/ship-simu/exceptions/class_EmptyStructuresListException.php b/ship-simu/application/ship-simu/exceptions/class_EmptyStructuresListException.php
new file mode 100644 (file)
index 0000000..d84efb7
--- /dev/null
@@ -0,0 +1,17 @@
+<?php
+
+// An exception class for lost classes... ;-)
+class EmptyStructuresListException extends FrameworkException {
+       public function __construct ($class, $code) {
+               // Add a message around the missing class
+               $message = sprintf("[%s:] Die Strukturen-Liste ist leer.",
+                       $class->__toString()
+               );
+
+               // Call parent constructor
+               parent::__construct($message, $code);
+       }
+}
+
+// [EOF]
+?>