WireDatabaseDialect::queryException()
Handle an exception from a translated query(), exec() or prepare()
Returns the exception to throw, or (for prepare) a statement to return instead.
Usage
$pDOException = $wireDatabaseDialect->queryException(\PDOException $e, string $method, string $sql, string $translated, \PDO $pdo);Arguments
| Name | Type(s) | Description |
|---|---|---|
$e | \PDOException | |
$method | string | One of 'query', 'exec' or 'prepare' |
$sql | string | Original SQL |
$translated | string | Translated SQL (blank if translation itself failed) |
$pdo | \PDO |
Return value
PDOException \PDOStatement
WireDatabaseDialect methods and properties
API reference based on ProcessWire core version 3.0.275