<?php

/*
 * This file is part of the broadway/broadway package.
 *
 * (c) Qandidate.com <opensource@qandidate.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Broadway\EventStore\Dbal;

use Doctrine\DBAL\DBALException;

/**
 * Wraps exceptions thrown by the DBAL event store.
 */
class DBALEventStoreException extends EventStoreException
{
    public static function create(DBALException $exception)
    {
        return new DBALEventStoreException(null, 0, $exception);
    }
}

<?php

/*
 * This file is part of the broadway/broadway package.
 *
 * (c) Qandidate.com <opensource@qandidate.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Broadway\EventStore\Dbal;

use Broadway\EventStore\EventStoreException;
use Doctrine\DBAL\DBALException;

/**
 * Wraps exceptions thrown by the DBAL event store.
 */
class DBALEventStoreException extends EventStoreException
{
    public static function create(DBALException $exception)
    {
        return new DBALEventStoreException(null, 0, $exception);
    }
}

Add missing EventStoreException in use block
Add missing EventStoreException in use block
