404

[ Avaa Bypassed ]




Upload:

Command:

elspacio@3.144.37.240: ~ $
<?php

namespace Doctrine\DBAL\Exception;

use Doctrine\DBAL\Driver\Exception as TheDriverException;
use Doctrine\DBAL\Exception;
use Doctrine\DBAL\Query;

use function assert;

/**
 * Base class for all errors detected in the driver.
 *
 * @psalm-immutable
 */
class DriverException extends Exception implements TheDriverException
{
    /**
     * The query that triggered the exception, if any.
     */
    private ?Query $query;

    /**
     * @internal
     *
     * @param TheDriverException $driverException The DBAL driver exception to chain.
     * @param Query|null         $query           The SQL query that triggered the exception, if any.
     */
    public function __construct(TheDriverException $driverException, ?Query $query)
    {
        if ($query !== null) {
            $message = 'An exception occurred while executing a query: ' . $driverException->getMessage();
        } else {
            $message = 'An exception occurred in the driver: ' . $driverException->getMessage();
        }

        parent::__construct($message, $driverException->getCode(), $driverException);

        $this->query = $query;
    }

    /**
     * {@inheritDoc}
     */
    public function getSQLState()
    {
        $previous = $this->getPrevious();
        assert($previous instanceof TheDriverException);

        return $previous->getSQLState();
    }

    public function getQuery(): ?Query
    {
        return $this->query;
    }
}

Filemanager

Name Type Size Permission Actions
ConnectionException.php File 200 B 0644
ConnectionLost.php File 126 B 0644
ConstraintViolationException.php File 219 B 0644
DatabaseDoesNotExist.php File 138 B 0644
DatabaseObjectExistsException.php File 430 B 0644
DatabaseObjectNotFoundException.php File 423 B 0644
DatabaseRequired.php File 353 B 0644
DeadlockException.php File 231 B 0644
DriverException.php File 1.41 KB 0644
ForeignKeyConstraintViolationException.php File 236 B 0644
InvalidArgumentException.php File 397 B 0644
InvalidFieldNameException.php File 222 B 0644
InvalidLockMode.php File 523 B 0644
LockWaitTimeoutException.php File 247 B 0644
MalformedDsnException.php File 276 B 0644
NoKeyValue.php File 474 B 0644
NonUniqueFieldNameException.php File 236 B 0644
NotNullConstraintViolationException.php File 230 B 0644
ReadOnlyException.php File 225 B 0644
RetryableException.php File 224 B 0644
SchemaDoesNotExist.php File 136 B 0644
ServerException.php File 192 B 0644
SyntaxErrorException.php File 200 B 0644
TableExistsException.php File 236 B 0644
TableNotFoundException.php File 231 B 0644
UniqueConstraintViolationException.php File 227 B 0644