xmlrpc_error

Versions
4.6 – 4.7
xmlrpc_error($code = NULL, $message = NULL)
5 – 6
xmlrpc_error($code = NULL, $message = NULL, $reset = FALSE)
7
xmlrpc_error($code = NULL, $message = NULL)

▾ 9 functions call xmlrpc_error()

blogapi_error in modules/blogapi/blogapi.module
Prepare an error message for returning to the XMLRPC caller.
xmlrpc_clear_error in includes/xmlrpc.inc
Clears any previous error.
xmlrpc_errno in includes/xmlrpc.inc
Returns the last XML-RPC client error number
xmlrpc_error_msg in includes/xmlrpc.inc
Returns the last XML-RPC client error message
xmlrpc_server_call in includes/xmlrpcs.inc
Dispatch the request and any parameters to the appropriate handler.
xmlrpc_server_error in includes/xmlrpcs.inc
Throw an XML-RPC error.
xmlrpc_server_method_signature in includes/xmlrpcs.inc
XML-RPC method system.methodSignature maps to this function.
xmlrpc_server_multicall in includes/xmlrpcs.inc
_xmlrpc in includes/xmlrpc.inc
Execute an XML remote procedural call. This is private function; call xmlrpc() in common.inc instead of this function.

Code

includes/xmlrpc.inc, line 344

<?php
function xmlrpc_error($code = NULL, $message = NULL, $reset = FALSE) {
  static $xmlrpc_error;
  if (isset($code)) {
    $xmlrpc_error = new stdClass();
    $xmlrpc_error->is_error = TRUE;
    $xmlrpc_error->code = $code;
    $xmlrpc_error->message = $message;
  }
  elseif ($reset) {
    $xmlrpc_error = NULL;
  }
  return $xmlrpc_error;
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.