IXR_Server::error() WordPress Method
The IXR_Server::error() method is used to return an error message to the client. This method can be used to handle any errors that occur during the processing of a request.
IXR_Server::error( $error, $message = false ) #
Source
File: wp-includes/IXR/class-IXR-server.php
function error($error, $message = false) { // Accepts either an error object or an error code and message if ($message && !is_object($error)) { $error = new IXR_Error($error, $message); } $this->output($error->getXml()); }
Expand full source codeCollapse full source codeView on TracView on GitHub