IXR_Error::getXml() WordPress Method
The IXR_Error::getXml() method is used to retrieve an XML representation of the error. This is useful for debugging purposes or for displaying the error to the user.
IXR_Error::getXml() #
Contents
Source
File: wp-includes/IXR/class-IXR-error.php
function getXml() { $xml = <<<EOD <methodResponse> <fault> <value> <struct> <member> <name>faultCode</name> <value><int>{$this->code}</int></value> </member> <member> <name>faultString</name> <value><string>{$this->message}</string></value> </member> </struct> </value> </fault> </methodResponse> EOD; return $xml; }
Expand full source codeCollapse full source codeView on TracView on GitHub