]> git.mxchange.org Git - shipsimu.git/blobdiff - application/ship-simu/main/class_WorksContract.php
More smaller fixes, factory added to ship-simu
[shipsimu.git] / application / ship-simu / main / class_WorksContract.php
index fdcc74a9ce80c64b43e404b99c19da54d067b6cb..cd2f0450937712276cd6003454b166802fa0e11a 100644 (file)
@@ -91,7 +91,7 @@ class WorksContract extends BaseFrameworkSystem implements SignableContract {
                // Existiert die Klasse ueberhaupt?
                if (!class_exists($shipType)) {
                        // Klasse nicht gefunden
-                       throw new ClassNotFoundException ($shipType, 0);
+                       throw new ClassNotFoundException ($shipType, self::EXCEPTION_CLASS_NOT_FOUND);
                }
 
                // Schiff-Instanz temporaer erzeugen und in den Bauvertrag einfuegen
@@ -242,7 +242,7 @@ class WorksContract extends BaseFrameworkSystem implements SignableContract {
                                        $this->getShipInstance()->getShipName()
                                ));
                        }
-               } catch(ClassNotFoundException $e) {
+               } catch (ClassNotFoundException $e) {
                        // Throw it again...
                        throw new ClassNotFoundException($e->getMessage(), $e->getCode());
                }