File "CouldntStartDatabaseTransaction.php"

Full Path: /var/www/html/back/vendor/knuckleswtf/scribe/src/Exceptions/CouldntStartDatabaseTransaction.php
File size: 540 bytes
MIME-type: text/x-php
Charset: utf-8

<?php

namespace Knuckles\Scribe\Exceptions;

class CouldntStartDatabaseTransaction extends \RuntimeException implements ScribeException
{
    public static function forConnection(string $connectionName, \Throwable $originalException): self
    {
        return new self("Couldn't start a database transaction for the connection $connectionName. ".
            "Make sure this database is running. If you aren't using this connection, remove it from your `databaseConnectionsToTransact` config",
            0, $originalException);
    }
}