MediaWiki  REL1_22
WikiError Class Reference

Since PHP4 doesn't have exceptions, here's some error objects loosely modeled on the standard PEAR_Error model... More...

Inheritance diagram for WikiError:

List of all members.

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.

Detailed Description

Since PHP4 doesn't have exceptions, here's some error objects loosely modeled on the standard PEAR_Error model...

Definition at line 31 of file WikiError.php.


Constructor & Destructor Documentation

WikiError::__construct ( message)
Parameters:
$messagestring
Deprecated:
since 1.17

Reimplemented in WikiErrorMsg.

Definition at line 37 of file WikiError.php.

References wfDeprecated().


Member Function Documentation

Returns:
string Plaintext error message to display

Reimplemented in WikiXmlError.

Definition at line 45 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.

Parameters:
$objectmixed
Returns:
bool
Deprecated:
since 1.17

Definition at line 67 of file WikiError.php.

References wfDeprecated().

In following PEAR_Error model this could be formatted differently, but so far it's not.

Returns:
string

Definition at line 54 of file WikiError.php.

References getMessage().


The documentation for this class was generated from the following file: