final class UnsupportedSqlException
    extends SimulationException

Refuses a statement ZTD cannot simulate.

ZTD never writes to the database, so a statement it cannot work out the effect of is refused rather than run. The statement is carried whole, because what a caller needs in order to act on this is which statement was refused, not only that one was.

Methods§

public function __construct(
    string $sql,
    string $category = 'Unsupported',
    Throwable|null $previous = null,
)

Parameters

$sqlstringThe statement being refused, as written
$categorystringWhat about it ZTD cannot simulate
$previousThrowable|nullWhat made this impossible, where something did
Test cases 5
Calls 2
public function getSql(): string

Answers the statement being refused.

Returns

string The statement, as written
Test cases 1
public function getCategory(): string

Answers what about the statement ZTD cannot simulate.

Returns

string What was refused
Test cases 2

Private surface 2§

Implementation details, listed for orientation only.

private string $sql
private string $category

Test cases 33§

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

Dedicated tests 5
Other tests reaching this symbol 28

Relations§

Instantiated in 9
Method calls 1
Type declarations 1