Skip to content

Commit f0b320b

Browse files
Add AfterCommitException
If a callback in commit throws an excecption, the calling plugin needs to be able to distinguish this from a unsuccessful commit, so that it doesn't attempt a rollback on an already commited transaction. (Which would cause an “Asymmetric transaction rollback" error)
1 parent 6514707 commit f0b320b

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?php
2+
/**
3+
* AfterCommitException Exception
4+
*
5+
* Copyright © Magento, Inc. All rights reserved.
6+
* See COPYING.txt for license details.
7+
*/
8+
namespace Magento\Framework\Exception;
9+
10+
/**
11+
* @api
12+
*/
13+
class AfterCommitException extends \Exception
14+
{
15+
}

0 commit comments

Comments
 (0)