final class JsonProblem
    implements Diagnostic
    uses Snapshot
Public API: explicitly declared with @visibility public.

An SQL/JSON expression the server rejects.

Describing an invalid ON ERROR behaviordoctest
(new \SqlSemantics\Platform\PostgreSql\Statement\Invocation\Problem\JsonProblem(\SqlSemantics\Platform\PostgreSql\Statement\Invocation\Problem\JsonProblemKind::InvalidBehavior, ['ON ERROR']))->message() // => 'invalid ON ERROR behavior'

Properties§

public list<string> $subjects

Methods§

public function __construct(public JsonProblemKind $kind, list<string> $subjects = [])

Parameters

$kindJsonProblemKindThe mistake
$subjectslist<string>The clause, column or function names the message names, in order
Calls 3
public function message(): string

Describes the problem as the server does.

Returns

string
Test cases 1
Calls 1

Test cases 5§

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

Dedicated tests 2
Other tests reaching this symbol 3

Relations§

Instantiated in 6