Update website
This commit is contained in:
parent
4413528994
commit
1d90fbf296
6865 changed files with 1091082 additions and 0 deletions
12
vendor/doctrine/dbal/src/Exception/ConnectionException.php
vendored
Normal file
12
vendor/doctrine/dbal/src/Exception/ConnectionException.php
vendored
Normal file
|
@ -0,0 +1,12 @@
|
|||
<?php
|
||||
|
||||
namespace Doctrine\DBAL\Exception;
|
||||
|
||||
/**
|
||||
* Base class for all connection related errors detected in the driver.
|
||||
*
|
||||
* @psalm-immutable
|
||||
*/
|
||||
class ConnectionException extends DriverException
|
||||
{
|
||||
}
|
8
vendor/doctrine/dbal/src/Exception/ConnectionLost.php
vendored
Normal file
8
vendor/doctrine/dbal/src/Exception/ConnectionLost.php
vendored
Normal file
|
@ -0,0 +1,8 @@
|
|||
<?php
|
||||
|
||||
namespace Doctrine\DBAL\Exception;
|
||||
|
||||
/** @psalm-immutable */
|
||||
final class ConnectionLost extends ConnectionException
|
||||
{
|
||||
}
|
12
vendor/doctrine/dbal/src/Exception/ConstraintViolationException.php
vendored
Normal file
12
vendor/doctrine/dbal/src/Exception/ConstraintViolationException.php
vendored
Normal file
|
@ -0,0 +1,12 @@
|
|||
<?php
|
||||
|
||||
namespace Doctrine\DBAL\Exception;
|
||||
|
||||
/**
|
||||
* Base class for all constraint violation related errors detected in the driver.
|
||||
*
|
||||
* @psalm-immutable
|
||||
*/
|
||||
class ConstraintViolationException extends ServerException
|
||||
{
|
||||
}
|
8
vendor/doctrine/dbal/src/Exception/DatabaseDoesNotExist.php
vendored
Normal file
8
vendor/doctrine/dbal/src/Exception/DatabaseDoesNotExist.php
vendored
Normal file
|
@ -0,0 +1,8 @@
|
|||
<?php
|
||||
|
||||
namespace Doctrine\DBAL\Exception;
|
||||
|
||||
/** @psalm-immutable */
|
||||
class DatabaseDoesNotExist extends DatabaseObjectNotFoundException
|
||||
{
|
||||
}
|
16
vendor/doctrine/dbal/src/Exception/DatabaseObjectExistsException.php
vendored
Normal file
16
vendor/doctrine/dbal/src/Exception/DatabaseObjectExistsException.php
vendored
Normal file
|
@ -0,0 +1,16 @@
|
|||
<?php
|
||||
|
||||
namespace Doctrine\DBAL\Exception;
|
||||
|
||||
/**
|
||||
* Base class for all already existing database object related errors detected in the driver.
|
||||
*
|
||||
* A database object is considered any asset that can be created in a database
|
||||
* such as schemas, tables, views, sequences, triggers, constraints, indexes,
|
||||
* functions, stored procedures etc.
|
||||
*
|
||||
* @psalm-immutable
|
||||
*/
|
||||
class DatabaseObjectExistsException extends ServerException
|
||||
{
|
||||
}
|
16
vendor/doctrine/dbal/src/Exception/DatabaseObjectNotFoundException.php
vendored
Normal file
16
vendor/doctrine/dbal/src/Exception/DatabaseObjectNotFoundException.php
vendored
Normal file
|
@ -0,0 +1,16 @@
|
|||
<?php
|
||||
|
||||
namespace Doctrine\DBAL\Exception;
|
||||
|
||||
/**
|
||||
* Base class for all unknown database object related errors detected in the driver.
|
||||
*
|
||||
* A database object is considered any asset that can be created in a database
|
||||
* such as schemas, tables, views, sequences, triggers, constraints, indexes,
|
||||
* functions, stored procedures etc.
|
||||
*
|
||||
* @psalm-immutable
|
||||
*/
|
||||
class DatabaseObjectNotFoundException extends ServerException
|
||||
{
|
||||
}
|
18
vendor/doctrine/dbal/src/Exception/DatabaseRequired.php
vendored
Normal file
18
vendor/doctrine/dbal/src/Exception/DatabaseRequired.php
vendored
Normal file
|
@ -0,0 +1,18 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Doctrine\DBAL\Exception;
|
||||
|
||||
use Doctrine\DBAL\Exception;
|
||||
|
||||
use function sprintf;
|
||||
|
||||
/** @psalm-immutable */
|
||||
class DatabaseRequired extends Exception
|
||||
{
|
||||
public static function new(string $methodName): self
|
||||
{
|
||||
return new self(sprintf('A database is required for the method: %s.', $methodName));
|
||||
}
|
||||
}
|
12
vendor/doctrine/dbal/src/Exception/DeadlockException.php
vendored
Normal file
12
vendor/doctrine/dbal/src/Exception/DeadlockException.php
vendored
Normal file
|
@ -0,0 +1,12 @@
|
|||
<?php
|
||||
|
||||
namespace Doctrine\DBAL\Exception;
|
||||
|
||||
/**
|
||||
* Exception for a deadlock error of a transaction detected in the driver.
|
||||
*
|
||||
* @psalm-immutable
|
||||
*/
|
||||
class DeadlockException extends ServerException implements RetryableException
|
||||
{
|
||||
}
|
57
vendor/doctrine/dbal/src/Exception/DriverException.php
vendored
Normal file
57
vendor/doctrine/dbal/src/Exception/DriverException.php
vendored
Normal file
|
@ -0,0 +1,57 @@
|
|||
<?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;
|
||||
}
|
||||
}
|
12
vendor/doctrine/dbal/src/Exception/ForeignKeyConstraintViolationException.php
vendored
Normal file
12
vendor/doctrine/dbal/src/Exception/ForeignKeyConstraintViolationException.php
vendored
Normal file
|
@ -0,0 +1,12 @@
|
|||
<?php
|
||||
|
||||
namespace Doctrine\DBAL\Exception;
|
||||
|
||||
/**
|
||||
* Exception for a foreign key constraint violation detected in the driver.
|
||||
*
|
||||
* @psalm-immutable
|
||||
*/
|
||||
class ForeignKeyConstraintViolationException extends ConstraintViolationException
|
||||
{
|
||||
}
|
19
vendor/doctrine/dbal/src/Exception/InvalidArgumentException.php
vendored
Normal file
19
vendor/doctrine/dbal/src/Exception/InvalidArgumentException.php
vendored
Normal file
|
@ -0,0 +1,19 @@
|
|||
<?php
|
||||
|
||||
namespace Doctrine\DBAL\Exception;
|
||||
|
||||
use Doctrine\DBAL\Exception;
|
||||
|
||||
/**
|
||||
* Exception to be thrown when invalid arguments are passed to any DBAL API
|
||||
*
|
||||
* @psalm-immutable
|
||||
*/
|
||||
class InvalidArgumentException extends Exception
|
||||
{
|
||||
/** @return self */
|
||||
public static function fromEmptyCriteria()
|
||||
{
|
||||
return new self('Empty criteria was used, expected non-empty criteria');
|
||||
}
|
||||
}
|
12
vendor/doctrine/dbal/src/Exception/InvalidFieldNameException.php
vendored
Normal file
12
vendor/doctrine/dbal/src/Exception/InvalidFieldNameException.php
vendored
Normal file
|
@ -0,0 +1,12 @@
|
|||
<?php
|
||||
|
||||
namespace Doctrine\DBAL\Exception;
|
||||
|
||||
/**
|
||||
* Exception for an invalid specified field name in a statement detected in the driver.
|
||||
*
|
||||
* @psalm-immutable
|
||||
*/
|
||||
class InvalidFieldNameException extends ServerException
|
||||
{
|
||||
}
|
22
vendor/doctrine/dbal/src/Exception/InvalidLockMode.php
vendored
Normal file
22
vendor/doctrine/dbal/src/Exception/InvalidLockMode.php
vendored
Normal file
|
@ -0,0 +1,22 @@
|
|||
<?php
|
||||
|
||||
namespace Doctrine\DBAL\Exception;
|
||||
|
||||
use Doctrine\DBAL\Exception;
|
||||
|
||||
use function sprintf;
|
||||
|
||||
/** @psalm-immutable */
|
||||
class InvalidLockMode extends Exception
|
||||
{
|
||||
public static function fromLockMode(int $lockMode): self
|
||||
{
|
||||
return new self(
|
||||
sprintf(
|
||||
'Lock mode %d is invalid. The valid values are LockMode::NONE, LockMode::OPTIMISTIC'
|
||||
. ', LockMode::PESSIMISTIC_READ and LockMode::PESSIMISTIC_WRITE',
|
||||
$lockMode,
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
12
vendor/doctrine/dbal/src/Exception/LockWaitTimeoutException.php
vendored
Normal file
12
vendor/doctrine/dbal/src/Exception/LockWaitTimeoutException.php
vendored
Normal file
|
@ -0,0 +1,12 @@
|
|||
<?php
|
||||
|
||||
namespace Doctrine\DBAL\Exception;
|
||||
|
||||
/**
|
||||
* Exception for a lock wait timeout error of a transaction detected in the driver.
|
||||
*
|
||||
* @psalm-immutable
|
||||
*/
|
||||
class LockWaitTimeoutException extends ServerException implements RetryableException
|
||||
{
|
||||
}
|
14
vendor/doctrine/dbal/src/Exception/MalformedDsnException.php
vendored
Normal file
14
vendor/doctrine/dbal/src/Exception/MalformedDsnException.php
vendored
Normal file
|
@ -0,0 +1,14 @@
|
|||
<?php
|
||||
|
||||
namespace Doctrine\DBAL\Exception;
|
||||
|
||||
use InvalidArgumentException;
|
||||
|
||||
/** @psalm-immutable */
|
||||
class MalformedDsnException extends InvalidArgumentException
|
||||
{
|
||||
public static function new(): self
|
||||
{
|
||||
return new self('Malformed database connection URL');
|
||||
}
|
||||
}
|
25
vendor/doctrine/dbal/src/Exception/NoKeyValue.php
vendored
Normal file
25
vendor/doctrine/dbal/src/Exception/NoKeyValue.php
vendored
Normal file
|
@ -0,0 +1,25 @@
|
|||
<?php
|
||||
|
||||
namespace Doctrine\DBAL\Exception;
|
||||
|
||||
use Doctrine\DBAL\Exception;
|
||||
|
||||
use function sprintf;
|
||||
|
||||
/**
|
||||
* @internal
|
||||
*
|
||||
* @psalm-immutable
|
||||
*/
|
||||
final class NoKeyValue extends Exception
|
||||
{
|
||||
public static function fromColumnCount(int $columnCount): self
|
||||
{
|
||||
return new self(
|
||||
sprintf(
|
||||
'Fetching as key-value pairs requires the result to contain at least 2 columns, %d given.',
|
||||
$columnCount,
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
12
vendor/doctrine/dbal/src/Exception/NonUniqueFieldNameException.php
vendored
Normal file
12
vendor/doctrine/dbal/src/Exception/NonUniqueFieldNameException.php
vendored
Normal file
|
@ -0,0 +1,12 @@
|
|||
<?php
|
||||
|
||||
namespace Doctrine\DBAL\Exception;
|
||||
|
||||
/**
|
||||
* Exception for a non-unique/ambiguous specified field name in a statement detected in the driver.
|
||||
*
|
||||
* @psalm-immutable
|
||||
*/
|
||||
class NonUniqueFieldNameException extends ServerException
|
||||
{
|
||||
}
|
12
vendor/doctrine/dbal/src/Exception/NotNullConstraintViolationException.php
vendored
Normal file
12
vendor/doctrine/dbal/src/Exception/NotNullConstraintViolationException.php
vendored
Normal file
|
@ -0,0 +1,12 @@
|
|||
<?php
|
||||
|
||||
namespace Doctrine\DBAL\Exception;
|
||||
|
||||
/**
|
||||
* Exception for a NOT NULL constraint violation detected in the driver.
|
||||
*
|
||||
* @psalm-immutable
|
||||
*/
|
||||
class NotNullConstraintViolationException extends ConstraintViolationException
|
||||
{
|
||||
}
|
12
vendor/doctrine/dbal/src/Exception/ReadOnlyException.php
vendored
Normal file
12
vendor/doctrine/dbal/src/Exception/ReadOnlyException.php
vendored
Normal file
|
@ -0,0 +1,12 @@
|
|||
<?php
|
||||
|
||||
namespace Doctrine\DBAL\Exception;
|
||||
|
||||
/**
|
||||
* Exception for a write operation attempt on a read-only database element detected in the driver.
|
||||
*
|
||||
* @psalm-immutable
|
||||
*/
|
||||
class ReadOnlyException extends ServerException
|
||||
{
|
||||
}
|
14
vendor/doctrine/dbal/src/Exception/RetryableException.php
vendored
Normal file
14
vendor/doctrine/dbal/src/Exception/RetryableException.php
vendored
Normal file
|
@ -0,0 +1,14 @@
|
|||
<?php
|
||||
|
||||
namespace Doctrine\DBAL\Exception;
|
||||
|
||||
use Throwable;
|
||||
|
||||
/**
|
||||
* Marker interface for all exceptions where retrying the transaction makes sense.
|
||||
*
|
||||
* @psalm-immutable
|
||||
*/
|
||||
interface RetryableException extends Throwable
|
||||
{
|
||||
}
|
8
vendor/doctrine/dbal/src/Exception/SchemaDoesNotExist.php
vendored
Normal file
8
vendor/doctrine/dbal/src/Exception/SchemaDoesNotExist.php
vendored
Normal file
|
@ -0,0 +1,8 @@
|
|||
<?php
|
||||
|
||||
namespace Doctrine\DBAL\Exception;
|
||||
|
||||
/** @psalm-immutable */
|
||||
class SchemaDoesNotExist extends DatabaseObjectNotFoundException
|
||||
{
|
||||
}
|
12
vendor/doctrine/dbal/src/Exception/ServerException.php
vendored
Normal file
12
vendor/doctrine/dbal/src/Exception/ServerException.php
vendored
Normal file
|
@ -0,0 +1,12 @@
|
|||
<?php
|
||||
|
||||
namespace Doctrine\DBAL\Exception;
|
||||
|
||||
/**
|
||||
* Base class for all server related errors detected in the driver.
|
||||
*
|
||||
* @psalm-immutable
|
||||
*/
|
||||
class ServerException extends DriverException
|
||||
{
|
||||
}
|
12
vendor/doctrine/dbal/src/Exception/SyntaxErrorException.php
vendored
Normal file
12
vendor/doctrine/dbal/src/Exception/SyntaxErrorException.php
vendored
Normal file
|
@ -0,0 +1,12 @@
|
|||
<?php
|
||||
|
||||
namespace Doctrine\DBAL\Exception;
|
||||
|
||||
/**
|
||||
* Exception for a syntax error in a statement detected in the driver.
|
||||
*
|
||||
* @psalm-immutable
|
||||
*/
|
||||
class SyntaxErrorException extends ServerException
|
||||
{
|
||||
}
|
12
vendor/doctrine/dbal/src/Exception/TableExistsException.php
vendored
Normal file
12
vendor/doctrine/dbal/src/Exception/TableExistsException.php
vendored
Normal file
|
@ -0,0 +1,12 @@
|
|||
<?php
|
||||
|
||||
namespace Doctrine\DBAL\Exception;
|
||||
|
||||
/**
|
||||
* Exception for an already existing table referenced in a statement detected in the driver.
|
||||
*
|
||||
* @psalm-immutable
|
||||
*/
|
||||
class TableExistsException extends DatabaseObjectExistsException
|
||||
{
|
||||
}
|
12
vendor/doctrine/dbal/src/Exception/TableNotFoundException.php
vendored
Normal file
12
vendor/doctrine/dbal/src/Exception/TableNotFoundException.php
vendored
Normal file
|
@ -0,0 +1,12 @@
|
|||
<?php
|
||||
|
||||
namespace Doctrine\DBAL\Exception;
|
||||
|
||||
/**
|
||||
* Exception for an unknown table referenced in a statement detected in the driver.
|
||||
*
|
||||
* @psalm-immutable
|
||||
*/
|
||||
class TableNotFoundException extends DatabaseObjectNotFoundException
|
||||
{
|
||||
}
|
12
vendor/doctrine/dbal/src/Exception/UniqueConstraintViolationException.php
vendored
Normal file
12
vendor/doctrine/dbal/src/Exception/UniqueConstraintViolationException.php
vendored
Normal file
|
@ -0,0 +1,12 @@
|
|||
<?php
|
||||
|
||||
namespace Doctrine\DBAL\Exception;
|
||||
|
||||
/**
|
||||
* Exception for a unique constraint violation detected in the driver.
|
||||
*
|
||||
* @psalm-immutable
|
||||
*/
|
||||
class UniqueConstraintViolationException extends ConstraintViolationException
|
||||
{
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue