updated-packages
This commit is contained in:
@@ -4,6 +4,8 @@ namespace Doctrine\DBAL\Exception;
|
||||
|
||||
/**
|
||||
* Base class for all connection related errors detected in the driver.
|
||||
*
|
||||
* @psalm-immutable
|
||||
*/
|
||||
class ConnectionException extends DriverException
|
||||
{
|
||||
|
10
vendor/doctrine/dbal/lib/Doctrine/DBAL/Exception/ConnectionLost.php
vendored
Normal file
10
vendor/doctrine/dbal/lib/Doctrine/DBAL/Exception/ConnectionLost.php
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
namespace Doctrine\DBAL\Exception;
|
||||
|
||||
/**
|
||||
* @psalm-immutable
|
||||
*/
|
||||
final class ConnectionLost extends ConnectionException
|
||||
{
|
||||
}
|
@@ -4,6 +4,8 @@ namespace Doctrine\DBAL\Exception;
|
||||
|
||||
/**
|
||||
* Base class for all constraint violation related errors detected in the driver.
|
||||
*
|
||||
* @psalm-immutable
|
||||
*/
|
||||
class ConstraintViolationException extends ServerException
|
||||
{
|
||||
|
@@ -8,6 +8,8 @@ namespace Doctrine\DBAL\Exception;
|
||||
* 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
|
||||
{
|
||||
|
@@ -8,6 +8,8 @@ namespace Doctrine\DBAL\Exception;
|
||||
* 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
|
||||
{
|
||||
|
@@ -4,6 +4,8 @@ namespace Doctrine\DBAL\Exception;
|
||||
|
||||
/**
|
||||
* Exception for a deadlock error of a transaction detected in the driver.
|
||||
*
|
||||
* @psalm-immutable
|
||||
*/
|
||||
class DeadlockException extends ServerException implements RetryableException
|
||||
{
|
||||
|
@@ -2,34 +2,30 @@
|
||||
|
||||
namespace Doctrine\DBAL\Exception;
|
||||
|
||||
use Doctrine\DBAL\DBALException;
|
||||
use Exception;
|
||||
use Doctrine\DBAL\Driver\DriverException as DeprecatedDriverException;
|
||||
use Doctrine\DBAL\Exception;
|
||||
|
||||
/**
|
||||
* Base class for all errors detected in the driver.
|
||||
*
|
||||
* @psalm-immutable
|
||||
*/
|
||||
class DriverException extends DBALException
|
||||
class DriverException extends Exception
|
||||
{
|
||||
/**
|
||||
* The previous DBAL driver exception.
|
||||
*
|
||||
* @var \Doctrine\DBAL\Driver\DriverException
|
||||
* @var DeprecatedDriverException
|
||||
*/
|
||||
private $driverException;
|
||||
|
||||
/**
|
||||
* @param string $message The exception message.
|
||||
* @param \Doctrine\DBAL\Driver\DriverException $driverException The DBAL driver exception to chain.
|
||||
* @param string $message The exception message.
|
||||
* @param DeprecatedDriverException $driverException The DBAL driver exception to chain.
|
||||
*/
|
||||
public function __construct($message, \Doctrine\DBAL\Driver\DriverException $driverException)
|
||||
public function __construct($message, DeprecatedDriverException $driverException)
|
||||
{
|
||||
$exception = null;
|
||||
|
||||
if ($driverException instanceof Exception) {
|
||||
$exception = $driverException;
|
||||
}
|
||||
|
||||
parent::__construct($message, 0, $exception);
|
||||
parent::__construct($message, 0, $driverException);
|
||||
|
||||
$this->driverException = $driverException;
|
||||
}
|
||||
|
@@ -4,6 +4,8 @@ namespace Doctrine\DBAL\Exception;
|
||||
|
||||
/**
|
||||
* Exception for a foreign key constraint violation detected in the driver.
|
||||
*
|
||||
* @psalm-immutable
|
||||
*/
|
||||
class ForeignKeyConstraintViolationException extends ConstraintViolationException
|
||||
{
|
||||
|
@@ -2,12 +2,14 @@
|
||||
|
||||
namespace Doctrine\DBAL\Exception;
|
||||
|
||||
use Doctrine\DBAL\DBALException;
|
||||
use Doctrine\DBAL\Exception;
|
||||
|
||||
/**
|
||||
* Exception to be thrown when invalid arguments are passed to any DBAL API
|
||||
*
|
||||
* @psalm-immutable
|
||||
*/
|
||||
class InvalidArgumentException extends DBALException
|
||||
class InvalidArgumentException extends Exception
|
||||
{
|
||||
/**
|
||||
* @return self
|
||||
|
@@ -4,6 +4,8 @@ namespace Doctrine\DBAL\Exception;
|
||||
|
||||
/**
|
||||
* Exception for an invalid specified field name in a statement detected in the driver.
|
||||
*
|
||||
* @psalm-immutable
|
||||
*/
|
||||
class InvalidFieldNameException extends ServerException
|
||||
{
|
||||
|
@@ -4,6 +4,8 @@ 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
|
||||
{
|
||||
|
25
vendor/doctrine/dbal/lib/Doctrine/DBAL/Exception/NoKeyValue.php
vendored
Normal file
25
vendor/doctrine/dbal/lib/Doctrine/DBAL/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
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
@@ -4,6 +4,8 @@ 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
|
||||
{
|
||||
|
@@ -4,6 +4,8 @@ namespace Doctrine\DBAL\Exception;
|
||||
|
||||
/**
|
||||
* Exception for a NOT NULL constraint violation detected in the driver.
|
||||
*
|
||||
* @psalm-immutable
|
||||
*/
|
||||
class NotNullConstraintViolationException extends ConstraintViolationException
|
||||
{
|
||||
|
@@ -4,6 +4,8 @@ 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
|
||||
{
|
||||
|
@@ -2,9 +2,13 @@
|
||||
|
||||
namespace Doctrine\DBAL\Exception;
|
||||
|
||||
use Throwable;
|
||||
|
||||
/**
|
||||
* Marker interface for all exceptions where retrying the transaction makes sense.
|
||||
*
|
||||
* @psalm-immutable
|
||||
*/
|
||||
interface RetryableException
|
||||
interface RetryableException extends Throwable
|
||||
{
|
||||
}
|
||||
|
@@ -4,6 +4,8 @@ namespace Doctrine\DBAL\Exception;
|
||||
|
||||
/**
|
||||
* Base class for all server related errors detected in the driver.
|
||||
*
|
||||
* @psalm-immutable
|
||||
*/
|
||||
class ServerException extends DriverException
|
||||
{
|
||||
|
@@ -4,6 +4,8 @@ namespace Doctrine\DBAL\Exception;
|
||||
|
||||
/**
|
||||
* Exception for a syntax error in a statement detected in the driver.
|
||||
*
|
||||
* @psalm-immutable
|
||||
*/
|
||||
class SyntaxErrorException extends ServerException
|
||||
{
|
||||
|
@@ -4,6 +4,8 @@ namespace Doctrine\DBAL\Exception;
|
||||
|
||||
/**
|
||||
* Exception for an already existing table referenced in a statement detected in the driver.
|
||||
*
|
||||
* @psalm-immutable
|
||||
*/
|
||||
class TableExistsException extends DatabaseObjectExistsException
|
||||
{
|
||||
|
@@ -4,6 +4,8 @@ namespace Doctrine\DBAL\Exception;
|
||||
|
||||
/**
|
||||
* Exception for an unknown table referenced in a statement detected in the driver.
|
||||
*
|
||||
* @psalm-immutable
|
||||
*/
|
||||
class TableNotFoundException extends DatabaseObjectNotFoundException
|
||||
{
|
||||
|
@@ -4,6 +4,8 @@ namespace Doctrine\DBAL\Exception;
|
||||
|
||||
/**
|
||||
* Exception for a unique constraint violation detected in the driver.
|
||||
*
|
||||
* @psalm-immutable
|
||||
*/
|
||||
class UniqueConstraintViolationException extends ConstraintViolationException
|
||||
{
|
||||
|
Reference in New Issue
Block a user