interfaceErrorClassifier
interface ErrorClassifier
Interface for classifying database errors by platform.
This allows platform-specific error classification logic to be abstracted away from the core ZTD layer.
Methods§
public function isUnknownSchemaError(DatabaseException $e): boolCheck if the exception represents an unknown schema error.
Unknown schema errors include:
- Unknown column references
- Non-existent table references
- Undeclared variables
Parameters
Returns
boolTest cases 1§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Other tests reaching this symbol 1
FakeErrorClassifiercalls
Relations§
Implemented by 4
- FakeErrorClassifier packages/ztd-query-core/tests/Fake/FakeErrorClassifier.php:15
- MySqlErrorClassifier packages/ztd-query-mysql/src/Connection/MySqlErrorClassifier.php:15
- PgSqlErrorClassifier packages/ztd-query-postgres/src/Connection/PgSqlErrorClassifier.php:22
- SqliteErrorClassifier packages/ztd-query-sqlite/src/Connection/SqliteErrorClassifier.php:23