Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ApplyFailedException.php

class ApplyFailedException

Exception thrown if a stage encounters an error applying an update.

If this exception is thrown it indicates that an update of the active codebase was attempted but failed. If this happens the site code is in an indeterminate state. Package Manager does not provide a method for recovering from this state. The site code should be restored from a backup.

This exception is different from StageFailureMarkerException in that it is thrown if an error happens *during* the apply operation, rather than before or after it.

Should not be thrown by external code.

Hierarchy

  • class \Drupal\package_manager\Exception\StageException extends \Drupal\package_manager\Exception\RuntimeException
    • class \Drupal\package_manager\Exception\ApplyFailedException extends \Drupal\package_manager\Exception\StageException

Expanded class hierarchy of ApplyFailedException

1 file declares its use of ApplyFailedException
StageBase.php in core/modules/package_manager/src/StageBase.php

File

core/modules/package_manager/src/Exception/ApplyFailedException.php, line 21

Namespace

Drupal\package_manager\Exception
View source
final class ApplyFailedException extends StageException {

}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal