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