Managing errors that occur in the Drush framework.

  1. 6.x drush/includes/ errorhandling
  2. 4.x drush/includes/ errorhandling
  3. 5.x drush/includes/ errorhandling
  4. 3.x drush/includes/ errorhandling
  5. 7.x drush/includes/ 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.


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


drush/includes/, line 1715
The drush API implementation and helpers.