classSqlParseException
final class SqlParseException
extends SimulationException
Exception thrown when SQL parsing fails due to syntax errors.
Methods§
public function __construct(string $sql, string $parseError)Parameters
$sql | string | The SQL statement that failed to parse. |
$parseError | string | The parse error message. |
Test cases 3
Calls 2
- static-call SimulationException::__construct() line 28
- function-call
sprintfline 28
public function getSql(): stringGet the SQL statement that failed to parse.
Returns
stringTest cases 1
SqlParseExceptionTest::testGetSqlReturnsOriginalSqlcovers and calls
public function getParseError(): stringGet the parse error message.
Returns
stringTest cases 1
SqlParseExceptionTest::testGetParseErrorReturnsParseErrorcovers and calls
Private surface 2§
Implementation details, listed for orientation only.
private string $sqlprivate string $parseErrorTest cases 3§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 3
SqlParseExceptionTest::testGetMessageReturnsFormattedMessagecovers and callsSqlParseExceptionTest::testGetParseErrorReturnsParseErrorcovers and callsSqlParseExceptionTest::testGetSqlReturnsOriginalSqlcovers and calls