final class SemanticException
    extends RuntimeException
    implements AnalysisException
Public API: explicitly declared with @visibility public.

Semantic problems established while analyzing grammatical SQL.

Rejecting a query that names a missing relationdoctest
(new \SqlSemantics\Platform\MySql\Semantics())->analyze('SELECT * FROM t', []) // throws \SqlSemantics\Platform\MySql\Model\Diagnostic\SemanticException

Properties§

public non-empty-list<Diagnostic> $diagnostics

Methods§

public function __construct(public non-empty-list<Diagnostic> $diagnostics)

Parameters

$diagnosticsnon-empty-list<Diagnostic>The problems in derivation order
Calls 4

Test cases 3§

Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.

Dedicated tests 1
Other tests reaching this symbol 2

Relations§

Instantiated in 1