WordPress at Your Fingertips
function is not described

IXR_Server::error() public WP 1.0

{} It's a method of the class: IXR_Server{}

No Hooks.

Return

null. Nothing.

Usage

$IXR_Server = new IXR_Server();
$IXR_Server->error( $error, $message );
$error (required)
-
$message **
-
Default: false

Code of IXR_Server::error() WP 5.8

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