summaryrefslogtreecommitdiff
path: root/vendor/doctrine/orm/src/Query/AST/ASTException.php
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/doctrine/orm/src/Query/AST/ASTException.php')
-rw-r--r--vendor/doctrine/orm/src/Query/AST/ASTException.php20
1 files changed, 20 insertions, 0 deletions
diff --git a/vendor/doctrine/orm/src/Query/AST/ASTException.php b/vendor/doctrine/orm/src/Query/AST/ASTException.php
new file mode 100644
index 0000000..1ef890a
--- /dev/null
+++ b/vendor/doctrine/orm/src/Query/AST/ASTException.php
@@ -0,0 +1,20 @@
1<?php
2
3declare(strict_types=1);
4
5namespace Doctrine\ORM\Query\AST;
6
7use Doctrine\ORM\Query\QueryException;
8
9use function get_debug_type;
10
11/**
12 * Base exception class for AST exceptions.
13 */
14class ASTException extends QueryException
15{
16 public static function noDispatchForNode(Node $node): self
17 {
18 return new self('Double-dispatch for node ' . get_debug_type($node) . ' is not supported.');
19 }
20}