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());
    }

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.