You are here

function cmis_error_handler in CMIS API 7.2

Same name and namespace in other branches
  1. 6.4 cmis.module \cmis_error_handler()
  2. 6.2 cmis.module \cmis_error_handler()
  3. 6.3 cmis.module \cmis_error_handler()
  4. 7 cmis.module \cmis_error_handler()

Utility for handling CMIS errors.

Parameters

$e Exception:

18 calls to cmis_error_handler()
cmis_browser_autocomplete in cmis_browser/cmis_browser.content_autocomplete.inc
Cmis folder picker autocomplete callback.
cmis_browser_content_delete_confirm in cmis_browser/cmis_browser.content_delete.inc
Menu callback -- ask for confirmation of CMIS object deletion
cmis_browser_content_delete_confirm_submit in cmis_browser/cmis_browser.content_delete.inc
Execute CMIS object deletion.
cmis_browser_content_get in cmis_browser/cmis_browser.content_get.inc
Build cmis_browser browse page.
cmis_browser_content_properties in cmis_browser/cmis_browser.content_properties.inc
CMIS object properties page.

... See full list

File

./cmis.module, line 225

Code

function cmis_error_handler($type, $e) {
  watchdog($type, $e
    ->getMessage(), NULL, WATCHDOG_ERROR);

  // Do we really want end users to see error returned from the CMIS server?

  //drupal_set_message($e->getMessage(), 'error');
  drupal_set_message(t("There has been an problem contacting the CMIS server, please see the logs."), 'error');
}