Public Member Functions | |
| __construct ($message, $query="") | |
| Construct a new SQLException. | |
| getQuery () | |
| Return the query that caused this exception to be thrown. | |
Example:
$qry = "INSERT INTO foo VALUES (10, 'bar'); $res = mysql_query($qry); if (!$res) { throw new SQLException(mysql_error(), $qry); }
Definition at line 848 of file tlib.php.
| TLSQLException::__construct | ( | $ | message, | |
| $ | query = "" | |||
| ) |
| TLSQLException::getQuery | ( | ) |
1.4.7