summaryrefslogtreecommitdiff
path: root/vendor/doctrine/dbal/src/Schema/Exception
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/doctrine/dbal/src/Schema/Exception')
-rw-r--r--vendor/doctrine/dbal/src/Schema/Exception/ColumnAlreadyExists.php19
-rw-r--r--vendor/doctrine/dbal/src/Schema/Exception/ColumnDoesNotExist.php19
-rw-r--r--vendor/doctrine/dbal/src/Schema/Exception/ForeignKeyDoesNotExist.php21
-rw-r--r--vendor/doctrine/dbal/src/Schema/Exception/IndexAlreadyExists.php21
-rw-r--r--vendor/doctrine/dbal/src/Schema/Exception/IndexDoesNotExist.php19
-rw-r--r--vendor/doctrine/dbal/src/Schema/Exception/IndexNameInvalid.php19
-rw-r--r--vendor/doctrine/dbal/src/Schema/Exception/InvalidTableName.php19
-rw-r--r--vendor/doctrine/dbal/src/Schema/Exception/NamespaceAlreadyExists.php19
-rw-r--r--vendor/doctrine/dbal/src/Schema/Exception/SequenceAlreadyExists.php19
-rw-r--r--vendor/doctrine/dbal/src/Schema/Exception/SequenceDoesNotExist.php19
-rw-r--r--vendor/doctrine/dbal/src/Schema/Exception/TableAlreadyExists.php19
-rw-r--r--vendor/doctrine/dbal/src/Schema/Exception/TableDoesNotExist.php19
-rw-r--r--vendor/doctrine/dbal/src/Schema/Exception/UniqueConstraintDoesNotExist.php21
-rw-r--r--vendor/doctrine/dbal/src/Schema/Exception/UnknownColumnOption.php21
14 files changed, 274 insertions, 0 deletions
diff --git a/vendor/doctrine/dbal/src/Schema/Exception/ColumnAlreadyExists.php b/vendor/doctrine/dbal/src/Schema/Exception/ColumnAlreadyExists.php
new file mode 100644
index 0000000..53daac9
--- /dev/null
+++ b/vendor/doctrine/dbal/src/Schema/Exception/ColumnAlreadyExists.php
@@ -0,0 +1,19 @@
1<?php
2
3declare(strict_types=1);
4
5namespace Doctrine\DBAL\Schema\Exception;
6
7use Doctrine\DBAL\Schema\SchemaException;
8use LogicException;
9
10use function sprintf;
11
12/** @psalm-immutable */
13final class ColumnAlreadyExists extends LogicException implements SchemaException
14{
15 public static function new(string $tableName, string $columnName): self
16 {
17 return new self(sprintf('The column "%s" on table "%s" already exists.', $columnName, $tableName));
18 }
19}
diff --git a/vendor/doctrine/dbal/src/Schema/Exception/ColumnDoesNotExist.php b/vendor/doctrine/dbal/src/Schema/Exception/ColumnDoesNotExist.php
new file mode 100644
index 0000000..cb1cedf
--- /dev/null
+++ b/vendor/doctrine/dbal/src/Schema/Exception/ColumnDoesNotExist.php
@@ -0,0 +1,19 @@
1<?php
2
3declare(strict_types=1);
4
5namespace Doctrine\DBAL\Schema\Exception;
6
7use Doctrine\DBAL\Schema\SchemaException;
8use LogicException;
9
10use function sprintf;
11
12/** @psalm-immutable */
13final class ColumnDoesNotExist extends LogicException implements SchemaException
14{
15 public static function new(string $columnName, string $table): self
16 {
17 return new self(sprintf('There is no column with name "%s" on table "%s".', $columnName, $table));
18 }
19}
diff --git a/vendor/doctrine/dbal/src/Schema/Exception/ForeignKeyDoesNotExist.php b/vendor/doctrine/dbal/src/Schema/Exception/ForeignKeyDoesNotExist.php
new file mode 100644
index 0000000..3e4c6c6
--- /dev/null
+++ b/vendor/doctrine/dbal/src/Schema/Exception/ForeignKeyDoesNotExist.php
@@ -0,0 +1,21 @@
1<?php
2
3declare(strict_types=1);
4
5namespace Doctrine\DBAL\Schema\Exception;
6
7use Doctrine\DBAL\Schema\SchemaException;
8use LogicException;
9
10use function sprintf;
11
12/** @psalm-immutable */
13final class ForeignKeyDoesNotExist extends LogicException implements SchemaException
14{
15 public static function new(string $foreignKeyName, string $table): self
16 {
17 return new self(
18 sprintf('There exists no foreign key with the name "%s" on table "%s".', $foreignKeyName, $table),
19 );
20 }
21}
diff --git a/vendor/doctrine/dbal/src/Schema/Exception/IndexAlreadyExists.php b/vendor/doctrine/dbal/src/Schema/Exception/IndexAlreadyExists.php
new file mode 100644
index 0000000..e8592be
--- /dev/null
+++ b/vendor/doctrine/dbal/src/Schema/Exception/IndexAlreadyExists.php
@@ -0,0 +1,21 @@
1<?php
2
3declare(strict_types=1);
4
5namespace Doctrine\DBAL\Schema\Exception;
6
7use Doctrine\DBAL\Schema\SchemaException;
8use LogicException;
9
10use function sprintf;
11
12/** @psalm-immutable */
13final class IndexAlreadyExists extends LogicException implements SchemaException
14{
15 public static function new(string $indexName, string $table): self
16 {
17 return new self(
18 sprintf('An index with name "%s" was already defined on table "%s".', $indexName, $table),
19 );
20 }
21}
diff --git a/vendor/doctrine/dbal/src/Schema/Exception/IndexDoesNotExist.php b/vendor/doctrine/dbal/src/Schema/Exception/IndexDoesNotExist.php
new file mode 100644
index 0000000..ee25fd8
--- /dev/null
+++ b/vendor/doctrine/dbal/src/Schema/Exception/IndexDoesNotExist.php
@@ -0,0 +1,19 @@
1<?php
2
3declare(strict_types=1);
4
5namespace Doctrine\DBAL\Schema\Exception;
6
7use Doctrine\DBAL\Schema\SchemaException;
8use LogicException;
9
10use function sprintf;
11
12/** @psalm-immutable */
13final class IndexDoesNotExist extends LogicException implements SchemaException
14{
15 public static function new(string $indexName, string $table): self
16 {
17 return new self(sprintf('Index "%s" does not exist on table "%s".', $indexName, $table));
18 }
19}
diff --git a/vendor/doctrine/dbal/src/Schema/Exception/IndexNameInvalid.php b/vendor/doctrine/dbal/src/Schema/Exception/IndexNameInvalid.php
new file mode 100644
index 0000000..d295eb8
--- /dev/null
+++ b/vendor/doctrine/dbal/src/Schema/Exception/IndexNameInvalid.php
@@ -0,0 +1,19 @@
1<?php
2
3declare(strict_types=1);
4
5namespace Doctrine\DBAL\Schema\Exception;
6
7use Doctrine\DBAL\Schema\SchemaException;
8use InvalidArgumentException;
9
10use function sprintf;
11
12/** @psalm-immutable */
13final class IndexNameInvalid extends InvalidArgumentException implements SchemaException
14{
15 public static function new(string $indexName): self
16 {
17 return new self(sprintf('Invalid index name "%s" given, has to be [a-zA-Z0-9_].', $indexName));
18 }
19}
diff --git a/vendor/doctrine/dbal/src/Schema/Exception/InvalidTableName.php b/vendor/doctrine/dbal/src/Schema/Exception/InvalidTableName.php
new file mode 100644
index 0000000..3b5d89d
--- /dev/null
+++ b/vendor/doctrine/dbal/src/Schema/Exception/InvalidTableName.php
@@ -0,0 +1,19 @@
1<?php
2
3declare(strict_types=1);
4
5namespace Doctrine\DBAL\Schema\Exception;
6
7use Doctrine\DBAL\Schema\SchemaException;
8use InvalidArgumentException;
9
10use function sprintf;
11
12/** @psalm-immutable */
13final class InvalidTableName extends InvalidArgumentException implements SchemaException
14{
15 public static function new(string $tableName): self
16 {
17 return new self(sprintf('Invalid table name specified "%s".', $tableName));
18 }
19}
diff --git a/vendor/doctrine/dbal/src/Schema/Exception/NamespaceAlreadyExists.php b/vendor/doctrine/dbal/src/Schema/Exception/NamespaceAlreadyExists.php
new file mode 100644
index 0000000..4109af5
--- /dev/null
+++ b/vendor/doctrine/dbal/src/Schema/Exception/NamespaceAlreadyExists.php
@@ -0,0 +1,19 @@
1<?php
2
3declare(strict_types=1);
4
5namespace Doctrine\DBAL\Schema\Exception;
6
7use Doctrine\DBAL\Schema\SchemaException;
8use LogicException;
9
10use function sprintf;
11
12/** @psalm-immutable */
13final class NamespaceAlreadyExists extends LogicException implements SchemaException
14{
15 public static function new(string $namespaceName): self
16 {
17 return new self(sprintf('The namespace with name "%s" already exists.', $namespaceName));
18 }
19}
diff --git a/vendor/doctrine/dbal/src/Schema/Exception/SequenceAlreadyExists.php b/vendor/doctrine/dbal/src/Schema/Exception/SequenceAlreadyExists.php
new file mode 100644
index 0000000..d374f27
--- /dev/null
+++ b/vendor/doctrine/dbal/src/Schema/Exception/SequenceAlreadyExists.php
@@ -0,0 +1,19 @@
1<?php
2
3declare(strict_types=1);
4
5namespace Doctrine\DBAL\Schema\Exception;
6
7use Doctrine\DBAL\Schema\SchemaException;
8use LogicException;
9
10use function sprintf;
11
12/** @psalm-immutable */
13final class SequenceAlreadyExists extends LogicException implements SchemaException
14{
15 public static function new(string $sequenceName): self
16 {
17 return new self(sprintf('The sequence "%s" already exists.', $sequenceName));
18 }
19}
diff --git a/vendor/doctrine/dbal/src/Schema/Exception/SequenceDoesNotExist.php b/vendor/doctrine/dbal/src/Schema/Exception/SequenceDoesNotExist.php
new file mode 100644
index 0000000..fa98cee
--- /dev/null
+++ b/vendor/doctrine/dbal/src/Schema/Exception/SequenceDoesNotExist.php
@@ -0,0 +1,19 @@
1<?php
2
3declare(strict_types=1);
4
5namespace Doctrine\DBAL\Schema\Exception;
6
7use Doctrine\DBAL\Schema\SchemaException;
8use LogicException;
9
10use function sprintf;
11
12/** @psalm-immutable */
13final class SequenceDoesNotExist extends LogicException implements SchemaException
14{
15 public static function new(string $sequenceName): self
16 {
17 return new self(sprintf('There exists no sequence with the name "%s".', $sequenceName));
18 }
19}
diff --git a/vendor/doctrine/dbal/src/Schema/Exception/TableAlreadyExists.php b/vendor/doctrine/dbal/src/Schema/Exception/TableAlreadyExists.php
new file mode 100644
index 0000000..b978dbc
--- /dev/null
+++ b/vendor/doctrine/dbal/src/Schema/Exception/TableAlreadyExists.php
@@ -0,0 +1,19 @@
1<?php
2
3declare(strict_types=1);
4
5namespace Doctrine\DBAL\Schema\Exception;
6
7use Doctrine\DBAL\Schema\SchemaException;
8use LogicException;
9
10use function sprintf;
11
12/** @psalm-immutable */
13final class TableAlreadyExists extends LogicException implements SchemaException
14{
15 public static function new(string $tableName): self
16 {
17 return new self(sprintf('The table with name "%s" already exists.', $tableName));
18 }
19}
diff --git a/vendor/doctrine/dbal/src/Schema/Exception/TableDoesNotExist.php b/vendor/doctrine/dbal/src/Schema/Exception/TableDoesNotExist.php
new file mode 100644
index 0000000..8c66a11
--- /dev/null
+++ b/vendor/doctrine/dbal/src/Schema/Exception/TableDoesNotExist.php
@@ -0,0 +1,19 @@
1<?php
2
3declare(strict_types=1);
4
5namespace Doctrine\DBAL\Schema\Exception;
6
7use Doctrine\DBAL\Schema\SchemaException;
8use LogicException;
9
10use function sprintf;
11
12/** @psalm-immutable */
13final class TableDoesNotExist extends LogicException implements SchemaException
14{
15 public static function new(string $tableName): self
16 {
17 return new self(sprintf('There is no table with name "%s" in the schema.', $tableName));
18 }
19}
diff --git a/vendor/doctrine/dbal/src/Schema/Exception/UniqueConstraintDoesNotExist.php b/vendor/doctrine/dbal/src/Schema/Exception/UniqueConstraintDoesNotExist.php
new file mode 100644
index 0000000..3ae5aaa
--- /dev/null
+++ b/vendor/doctrine/dbal/src/Schema/Exception/UniqueConstraintDoesNotExist.php
@@ -0,0 +1,21 @@
1<?php
2
3declare(strict_types=1);
4
5namespace Doctrine\DBAL\Schema\Exception;
6
7use Doctrine\DBAL\Schema\SchemaException;
8use LogicException;
9
10use function sprintf;
11
12/** @psalm-immutable */
13final class UniqueConstraintDoesNotExist extends LogicException implements SchemaException
14{
15 public static function new(string $constraintName, string $table): self
16 {
17 return new self(
18 sprintf('There exists no unique constraint with the name "%s" on table "%s".', $constraintName, $table),
19 );
20 }
21}
diff --git a/vendor/doctrine/dbal/src/Schema/Exception/UnknownColumnOption.php b/vendor/doctrine/dbal/src/Schema/Exception/UnknownColumnOption.php
new file mode 100644
index 0000000..a97ee76
--- /dev/null
+++ b/vendor/doctrine/dbal/src/Schema/Exception/UnknownColumnOption.php
@@ -0,0 +1,21 @@
1<?php
2
3declare(strict_types=1);
4
5namespace Doctrine\DBAL\Schema\Exception;
6
7use Doctrine\DBAL\Schema\SchemaException;
8use InvalidArgumentException;
9
10use function sprintf;
11
12/** @psalm-immutable */
13final class UnknownColumnOption extends InvalidArgumentException implements SchemaException
14{
15 public static function new(string $name): self
16 {
17 return new self(
18 sprintf('The "%s" column option is not supported.', $name),
19 );
20 }
21}