for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Antidot\Queue\Exception;
use Psr\Container\ContainerExceptionInterface;
use RuntimeException;
use Throwable;
use function sprintf;
class ActionContainerException extends RuntimeException implements ContainerExceptionInterface
{
public const MESSAGE = 'Error occurred instantiating "%s" class, see previous exception for more details.';
public static function withIdAndPreviousException(string $id, Throwable $exception): self
return new self(sprintf(self::MESSAGE, $id), 0, $exception);
}