Managing errors that occur in the Drush framework.

  1. 8.0.x includes/drush.inc errorhandling
  2. 6.x includes/drush.inc errorhandling
  3. 7.x includes/drush.inc errorhandling
  4. 3.x includes/drush.inc errorhandling
  5. 4.x includes/drush.inc errorhandling
  6. 5.x includes/drush.inc errorhandling
  7. master includes/drush.inc errorhandling

Functions that manage the current error status of the Drush framework.

These functions operate by maintaining a static variable that is a equal to the constant DRUSH_FRAMEWORK_ERROR if an error has occurred. This error code is returned at the end of program execution, and provide the shell or calling application with more information on how to diagnose any problems that may have occurred.

Functions

Namesort ascending Location Description
drush_user_abort includes/drush.inc Exit due to user declining a confirmation prompt.
drush_set_error includes/drush.inc Set an error code for the error handling system.
drush_get_error_log includes/drush.inc Return the current list of errors that have occurred.
drush_get_error includes/drush.inc Return the current error handling status
drush_errors_on includes/drush.inc Turn PHP error handling on.
drush_errors_off includes/drush.inc Turn PHP error handling off.
drush_cmp_error includes/drush.inc Check if a specific error status has been set.
drush_clear_error includes/drush.inc Clear error context.

File

includes/drush.inc, line 1479
The drush API implementation and helpers.