services_error

  1. services
    1. 5 services.module
    2. 7.3
    3. 7 services.module
    4. 6 services.module
    5. 6.2 services.module
    6. 6.3
Versions
5 services_error($message)
6.2 services_error($message, $code = 0, $exception = NULL)
7.3 – 6.3 services_error($message, $code = 0, $data = NULL)
6 services_error($message)
7 services_error($message, $code = 0, $exception = NULL)

Prepare an error message for returning to the server.

Parameters

string $message Error message.

int $code Optional. Error code. This often maps to the HTTP status codes. Defaults to 0.

mixed $data Optional. Information that can be used by the server to return information about the error. Defaults to null.

Return value

mixed

▾ 29 functions call services_error()

RESTServer::fileRecieve in servers/rest_server/includes/RESTServer.inc
RESTServer::getControllerArguments in servers/rest_server/includes/RESTServer.inc
Parses controller arguments from request
RESTServer::handle in servers/rest_server/includes/RESTServer.inc
Handles the call to the REST server
RESTServer::parseRequest in servers/rest_server/includes/RESTServer.inc
services_controller_execute in ./services.runtime.inc
Performs access checks and executes a services controller. This method is called by server implementations.
services_resource_execute_index_query in ./services.module
Helper function to execute a index query.
taxonomy_service_get_tree in resources/taxonomy_resource.inc
Services interface to taxonomy_get_tree().
taxonomy_service_select_nodes in resources/taxonomy_resource.inc
Services interface to taxonomy_select_nodes().
xmlrpc_server_call_wrapper in servers/xmlrpc_server/xmlrpc_server.module
Pass XMLRPC server requests to the appropriate services method.
_comment_resource_access in resources/comment_resource.inc
Access check callback for comment controllers.
_comment_resource_create in resources/comment_resource.inc
_comment_resource_delete in resources/comment_resource.inc
Delete a comment.
_comment_resource_update in resources/comment_resource.inc
Updates a comment and returns the cid.
_file_resource_access in resources/file_resource.inc
Access check callback for file controllers.
_file_resource_create in resources/file_resource.inc
Adds a new file and returns the fid.
_file_resource_create_raw in resources/file_resource.inc
Adds new files and returns the files array.
_node_resource_access in resources/node_resource.inc
Determine whether the current user can access a node resource.
_node_resource_create in resources/node_resource.inc
Creates a new node based on submitted values.
_node_resource_update in resources/node_resource.inc
Updates a new node based on submitted values.
_node_resource_validate_type in resources/node_resource.inc
_taxonomy_resource_delete_access in resources/taxonomy_resource.inc
Access callback for term deleting.
_taxonomy_resource_update_access in resources/taxonomy_resource.inc
Access callback for term updating.
_user_resource_access in resources/user_resource.inc
Access check callback for user resource.
_user_resource_create in resources/user_resource.inc
Create a new user.
_user_resource_delete in resources/user_resource.inc
Delete a user.
_user_resource_login in resources/user_resource.inc
Login a user using the specified credentials.
_user_resource_logout in resources/user_resource.inc
Logout the current user.
_user_resource_retrieve in resources/user_resource.inc
Get user details.
_user_resource_update in resources/user_resource.inc
Update an existing user.

Code

./services.runtime.inc, line 329

<?php
function services_error($message, $code = 0, $data = NULL) {
  throw new ServicesException($message, $code, $data);
}
?>