// Existiert die Klasse ueberhaupt?
if (!class_exists($shipType)) {
// Klasse nicht gefunden
- throw new ClassNotFoundException ($shipType, self::EXCEPTION_CLASS_NOT_FOUND);
+ throw new NoClassException ($shipType, self::EXCEPTION_CLASS_NOT_FOUND);
}
// Schiff-Instanz temporaer erzeugen und in den Bauvertrag einfuegen
$this->getShipInstance()->getShipName()
));
}
- } catch (ClassNotFoundException $e) {
+ } catch (NoClassException $e) {
// Throw it again...
- throw new ClassNotFoundException($e->getMessage(), $e->getCode());
+ throw new NoClassException($e->getMessage(), $e->getCode());
}
// Get price for this item