for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Event Sourcing implementation module.
*
* @author Maksim Masiukevich <[email protected]>
* @license MIT
* @license https://opensource.org/licenses/MIT
*/
declare(strict_types = 1);
namespace ServiceBus\EventSourcingModule\Exceptions;
final class IndexOperationFailed extends \RuntimeException
{
* @param \Throwable $throwable
* @return self
public static function fromThrowable(\Throwable $throwable): self
return new self(
$throwable->getMessage(),
(int) $throwable->getCode(),
$throwable
);
}