X-Git-Url: https://git.mxchange.org/?p=shipsimu.git;a=blobdiff_plain;f=application%2Fship-simu%2Fexceptions%2Fclass_NoShipyardsConstructedException.php;h=52cf913cdcc58ca9b0b66e501922d3b499eec799;hp=228e2dd16f74cfaef766ff829de903b32cf14654;hb=4f70843ae8428f051d70ccff5bb43fc4c03dda8d;hpb=d527a312ec4b2983fc0ecda2179ce335c1a5a1f9 diff --git a/application/ship-simu/exceptions/class_NoShipyardsConstructedException.php b/application/ship-simu/exceptions/class_NoShipyardsConstructedException.php index 228e2dd..52cf913 100644 --- a/application/ship-simu/exceptions/class_NoShipyardsConstructedException.php +++ b/application/ship-simu/exceptions/class_NoShipyardsConstructedException.php @@ -2,11 +2,11 @@ /** * An exception thrown when there are no shipyards constructed yet. * - * @author Roland Haeder + * @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, 2009 Ship-Simu Developer Team * @license GNU GPL 3.0 or any newer version - * @link http://www.ship-simu.org + * @link http://www.shipsimu.org * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -23,15 +23,14 @@ */ class NoShipyardsConstructedException extends FrameworkException { 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);