Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow for aborting completions or rollbacks. (#815)
* Allow for cancelling a rollback or completion with ForcedException. * Rename the AbortTasksException from ForcedException.
- Loading branch information
1 parent
76bf8ff
commit bb8cc0c
Showing
4 changed files
with
61 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?php | ||
namespace Robo\Exception; | ||
|
||
/** | ||
* By default, rollbacks and completions tasks or callbacks continue even if | ||
* errors occur. If you would like to explicitly cancel or abort the rollback or | ||
* completion, you may throw this exception to abort the subsequent tasks in the | ||
* rollback or completion task list. | ||
*/ | ||
class AbortTasksException extends \Exception | ||
{ | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters