Skip to content

Commit

Permalink
TASK: Add error code to SubscriptionEngineAlreadyProcessingException
Browse files Browse the repository at this point in the history
  • Loading branch information
mhsdesign committed Nov 27, 2024
1 parent 4424483 commit baa5e4a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ function (Subscriptions $subscriptions) use ($subscriptionStatus, $progressClosu
private function processExclusively(\Closure $closure): mixed
{
if ($this->processing) {
throw new SubscriptionEngineAlreadyProcessingException();
throw new SubscriptionEngineAlreadyProcessingException('Subscription engine is already processing', 1732714075);
}
$this->processing = true;
try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,4 @@
*/
final class SubscriptionEngineAlreadyProcessingException extends \RuntimeException
{
public function __construct()
{
parent::__construct('Subscription engine is already processing');
}
}

0 comments on commit baa5e4a

Please sign in to comment.