]> git.mxchange.org Git - shipsimu.git/blobdiff - ship-simu/inc/classes/exceptions/io/class_DirPointerNotOpenedException.php
Initial import of current development status
[shipsimu.git] / ship-simu / inc / classes / exceptions / io / class_DirPointerNotOpenedException.php
diff --git a/ship-simu/inc/classes/exceptions/io/class_DirPointerNotOpenedException.php b/ship-simu/inc/classes/exceptions/io/class_DirPointerNotOpenedException.php
new file mode 100644 (file)
index 0000000..237ff9f
--- /dev/null
@@ -0,0 +1,22 @@
+<?php
+
+// An exception class for lost classes... ;-)
+class DirPointerNotOpenedException extends FrameworkException {
+       /**
+        * The constructor
+        *
+        * @param               $message                Message from the exception
+        * @param               $code           Code number for the exception
+        * @return      void
+        */
+       public final function __construct ($path, $code) {
+               // Add a message around the missing class
+               $message = sprintf("F&uuml;r den Pfad <u>%s</u> konnte kein Pointer initialisiert werden.", $path);
+
+               // Call parent constructor
+               parent::__construct($message, $code);
+       }
+}
+
+// [EOF]
+?>