Inherited by WikiErrorMsg, and WikiXmlError.
Public Member Functions | |
__construct ($message) | |
getMessage () | |
toString () | |
In following PEAR_Error model this could be formatted differently, but so far it's not. | |
Static Public Member Functions | |
static | isError ($object) |
Returns true if the given object is a WikiError-descended error object, false otherwise. |
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 2 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, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. http://www.gnu.org/copyleft/gpl.html Since PHP4 doesn't have exceptions, here's some error objects loosely modeled on the standard PEAR_Error model...
Definition at line 29 of file WikiError.php.
WikiError::__construct | ( | $ | message | ) |
WikiError::getMessage | ( | ) |
Reimplemented in WikiXmlError.
Definition at line 40 of file WikiError.php.
Referenced by toString().
static WikiError::isError | ( | $ | object | ) | [static] |
Returns true if the given object is a WikiError-descended error object, false otherwise.
$object | mixed |
Definition at line 60 of file WikiError.php.
Referenced by LoginForm::addNewAccount(), LoginForm::addNewAccountMailPassword(), SpecialImport::doImport(), EmailUserForm::doSubmit(), TextPassDumper::dump(), ApiImport::execute(), LoginForm::mailPassword(), PreferencesForm::savePreferences(), UserMailer::send(), and EmailConfirmation::showRequestForm().
WikiError::toString | ( | ) |
In following PEAR_Error model this could be formatted differently, but so far it's not.
Definition at line 49 of file WikiError.php.
References getMessage().