X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=application%2Fship-simu%2Fexceptions%2Fclass_NoShipyardsConstructedException.php;h=03245b30bdc7782db878157bbfb293af2f5173af;hb=abb8bf6be9f5238f8a4552707bcb190f0dbf0b7a;hp=4ef7d2e14380c5c432ce47a7221baf26cc30c889;hpb=55be672a65bb8aadce8a45f4c54dca43a7c95d1f;p=shipsimu.git diff --git a/application/ship-simu/exceptions/class_NoShipyardsConstructedException.php b/application/ship-simu/exceptions/class_NoShipyardsConstructedException.php index 4ef7d2e..03245b3 100644 --- a/application/ship-simu/exceptions/class_NoShipyardsConstructedException.php +++ b/application/ship-simu/exceptions/class_NoShipyardsConstructedException.php @@ -4,7 +4,7 @@ * * @author Roland Haeder * @version 0.0.0 - * @copyright Copyright(c) 2007, 2008 Roland Haeder, this is free software + * @copyright Copyright (c) 2007, 2008 Roland Haeder, this is free software * @license GNU GPL 3.0 or any newer version * @link http://www.ship-simu.org * @@ -22,16 +22,15 @@ * along with this program. If not, see . */ class NoShipyardsConstructedException extends FrameworkException { - public function __construct (BaseFrameworkSystem $class, $code) { + public function __construct (FrameworkInterface $class, $code) { + // No class given + $message = sprintf("Please provide a class for %s", __CLASS__); if (is_object($class)) { // Add a message around the missing class $message = sprintf("[%s:] Keine Werften gefunden!", $class->__toString() ); - } else { - // No class given - $message = sprintf("Please provide a class for %s", __CLASS__); - } + } // END - if // Call parent constructor parent::__construct($message, $code);