function xmlrpc_server_error

xmlrpc_server_error($error, $message = FALSE)

Throws an XML-RPC error.

Parameters

$error: An error object or integer error code.

$message: (optional) The description of the error. Used only if an integer error code was passed in.

File

includes/xmlrpcs.inc, line 113
Provides API for defining and handling XML-RPC requests.

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

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/includes!xmlrpcs.inc/function/xmlrpc_server_error/7.x