You are here

function xmlrpc_server_error in Drupal 6

Same name and namespace in other branches
  1. 4 includes/xmlrpcs.inc \xmlrpc_server_error()
  2. 5 includes/xmlrpcs.inc \xmlrpc_server_error()
  3. 7 includes/xmlrpcs.inc \xmlrpc_server_error()

Throw an XML-RPC error.

Parameters

$error: an error object OR integer error code

$message: description of error, used only if integer error code was passed

1 call to xmlrpc_server_error()
xmlrpc_server in includes/xmlrpcs.inc
The main entry point for XML-RPC requests.

File

includes/xmlrpcs.inc, line 102

Code

function xmlrpc_server_error($error, $message = FALSE) {
  if ($message && !is_object($error)) {
    $error = xmlrpc_error($error, $message);
  }
  xmlrpc_server_output(xmlrpc_error_get_xml($error));
}