. */ /** * Exception that is thrown in case invalid arguments are being passed * * @version 1.0 * @date 25.4.2010 * @author Wim van Ravesteijn * @license http://opensource.org/licenses/gpl-license.php GNU Public License */ class InvalidArgumentException extends Exception { /** * Default constructor */ public function __construct($message, $code = 0) { parent::__construct($message, $code); } /** * Return formatted string for display */ public function __toString() { return __CLASS__ . ": [{$this->code}]: {$this->message}\n"; } } ?>