MediaWiki  REL1_19
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().

Here is the call graph for this function:


Member Function Documentation

Returns:
string Plaintext error message to display

Reimplemented in WikiXmlError.

Definition at line 45 of file WikiError.php.

Referenced by toString().

Here is the caller graph for this function:

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().

Referenced by TextPassDumper\dump().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the call graph for this function:


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