From: Roland Häder Date: Sun, 5 Apr 2009 14:22:57 +0000 (+0000) Subject: Remove deprecated exceptions X-Git-Url: https://git.mxchange.org/?p=core.git;a=commitdiff_plain;h=3b2625fbb043e29befd64394d9c90ab3a04e218d Remove deprecated exceptions --- diff --git a/.gitattributes b/.gitattributes index b40f3156..8a0a0b17 100644 --- a/.gitattributes +++ b/.gitattributes @@ -42,7 +42,6 @@ inc/classes/exceptions/database/local_file/class_SavePathIsNoDirectoryException. inc/classes/exceptions/database/local_file/class_SavePathReadProtectedException.php -text inc/classes/exceptions/database/local_file/class_SavePathWriteProtectedException.php -text inc/classes/exceptions/database/wrapper/.htaccess -text -inc/classes/exceptions/database/wrapper/class_WrapperUserNameNotFoundException.php -text inc/classes/exceptions/filter/.htaccess -text inc/classes/exceptions/filter/class_FilterChainException.php -text inc/classes/exceptions/helper/.htaccess -text @@ -94,7 +93,6 @@ inc/classes/exceptions/main/class_MissingDecimalsThousandsSeperatorException.php inc/classes/exceptions/main/class_MissingMethodException.php -text inc/classes/exceptions/main/class_NoArrayCreatedException.php -text inc/classes/exceptions/main/class_NoArrayException.php -text -inc/classes/exceptions/main/class_NoObjectException.php -text inc/classes/exceptions/main/class_NullPointerException.php -text inc/classes/exceptions/main/class_ResponseHeadersAlreadySentException.php -text inc/classes/exceptions/main/class_VariableIsNotSetException.php -text diff --git a/inc/classes/exceptions/database/wrapper/class_WrapperUserNameNotFoundException.php b/inc/classes/exceptions/database/wrapper/class_WrapperUserNameNotFoundException.php deleted file mode 100644 index afeac476..00000000 --- a/inc/classes/exceptions/database/wrapper/class_WrapperUserNameNotFoundException.php +++ /dev/null @@ -1,49 +0,0 @@ - - * @version 0.0.0 - * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 Core Developer Team - * @license GNU GPL 3.0 or any newer version - * @link http://www.ship-simu.org - * @todo This class is no longer used - * @deprecated - * - * 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 - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ -class WrapperUserNameNotFoundException extends DatabaseException { - /** - * The constructor - * - * @param $msgArray Message from the exception - * @param $code Code number for the exception - * @return void - */ - public function __construct (array $msgArray, $code) { - // Add a message around the missing class - $message = sprintf("[%s:%d] Username %s was not found. Requesting class: %s", - $msgArray[0]->__toString(), - $this->getLine(), - $msgArray[1]->getUserName(), - $msgArray[1]->__toString() - ); - - // Call parent constructor - parent::__construct($message, $code); - } -} - -// [EOF] -?> diff --git a/inc/classes/exceptions/main/class_NoObjectException.php b/inc/classes/exceptions/main/class_NoObjectException.php deleted file mode 100644 index d50bc9ec..00000000 --- a/inc/classes/exceptions/main/class_NoObjectException.php +++ /dev/null @@ -1,46 +0,0 @@ - - * @version 0.0.0 - * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 Core Developer Team - * @license GNU GPL 3.0 or any newer version - * @link http://www.ship-simu.org - * @deprecated - * @see InvalidObjectException - * - * 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 - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ -class NoObjectException extends FrameworkException { - /** - * The constructor - * - * @param $string Name of variable - * @param $code Code number for the exception - * @return void - */ - public function __construct ($string, $code) { - // Add a message around the missing class - $message = sprintf("%s ist kein Objekt!", - $string - ); - - // Call parent constructor - parent::__construct($message, $code); - } -} - -// [EOF] -?>