function xmlrpc_server_error in Drupal 4
Same name and namespace in other branches
- 5 includes/xmlrpcs.inc \xmlrpc_server_error()
- 6 includes/xmlrpcs.inc \xmlrpc_server_error()
- 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 99
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));
}