You are here

function services_error in Services 6

Same name and namespace in other branches
  1. 5 services.module \services_error()
  2. 6.3 services.runtime.inc \services_error()
  3. 6.2 services.module \services_error()
  4. 7.3 includes/services.runtime.inc \services_error()
  5. 7 services.module \services_error()

Prepare an error message for returning to the XMLRPC caller.

15 calls to services_error()
file_service_get in services/file_service/file_service.inc
Get all elements fomr a given file
file_service_get_node_files in services/file_service/file_service.inc
Generates an array of base64 encoded files attached to a node
node_service_get in services/node_service/node_service.inc
Returns a specified node.
node_service_save in services/node_service/node_service.inc
Save a node. It creates a new one, in case the 'nid' field is missing.
search_service_nodes in services/search_service/search_service.inc
Callback for search.nodes service.

... See full list

File

./services.module, line 236
@author Services Dev Team

Code

function services_error($message) {
  $server_info = services_get_server_info();

  // Look for custom error handling function.
  // Should be defined in each server module.
  if ($server_info && module_hook($server_info->module, 'server_error')) {
    return module_invoke($server_info->module, 'server_error', $message);
  }

  // No custom error handling function found.
  return $message;
}