Code rewritten to reflect latest changes in core
[shipsimu.git] / application / ship-simu / main / companies / class_ShippingCompany.php
index 9ffb6048c5c51063a8e026315cf3c102d1caf456..8891432b506eced9474170ec8e2436fd2eeb1b12 100644 (file)
@@ -471,7 +471,7 @@ class ShippingCompany extends BaseSimulator implements Customer, ContractPartner
                // Is the class there?
                if (!class_exists($shipType)) {
                        // Throw exception
-                       throw new ClassNotFoundException($shipType, self::EXCEPTION_CLASS_NOT_FOUND);
+                       throw new NoClassException($shipType, self::EXCEPTION_CLASS_NOT_FOUND);
                }
 
                // Create dummy ship