function xmlrpc_server_error in xmlrpc 8
Throws an XML-RPC error.
Parameters
int|object $error: An error object or integer error code.
false|string $message: (optional) The description of the error. Used only if an integer error code was passed in.
Return value
\Symfony\Component\HttpFoundation\Response A Response object.
1 call to xmlrpc_server_error()
- xmlrpc_server in ./
xmlrpc.server.inc - Invokes XML-RPC methods on this server.
File
- ./
xmlrpc.server.inc, line 121 - Page callback file for the xmlrpc module.
Code
function xmlrpc_server_error($error, $message = FALSE) {
if ($message && !is_object($error)) {
$error = xmlrpc_error($error, $message);
}
return xmlrpc_server_output(xmlrpc_error_get_xml($error));
}