1
0
mirror of https://github.com/dg/dibi.git synced 2025-08-05 05:37:39 +02:00

PcreException renamed to DibiPcreException

This commit is contained in:
David Grudl
2010-10-06 17:23:31 +02:00
parent 0c4f343238
commit 36fe9d42c1
4 changed files with 5 additions and 6 deletions

View File

@@ -44,8 +44,7 @@ if (!defined('NETTE')) {
}
/** @package exceptions */
class PcreException extends Exception {
class DibiPcreException extends Exception {
public function __construct($message = '%msg.')
{

View File

@@ -178,7 +178,7 @@ class DibiMySqlDriver extends DibiObject implements IDibiDriver, IDibiResultDriv
{
$res = array();
preg_match_all('#(.+?): +(\d+) *#', mysql_info($this->connection), $matches, PREG_SET_ORDER);
if (preg_last_error()) throw new PcreException;
if (preg_last_error()) throw new DibiPcreException;
foreach ($matches as $m) {
$res[$m[1]] = (int) $m[2];

View File

@@ -175,7 +175,7 @@ class DibiMySqliDriver extends DibiObject implements IDibiDriver, IDibiResultDri
{
$res = array();
preg_match_all('#(.+?): +(\d+) *#', mysqli_info($this->connection), $matches, PREG_SET_ORDER);
if (preg_last_error()) throw new PcreException;
if (preg_last_error()) throw new DibiPcreException;
foreach ($matches as $m) {
$res[$m[1]] = (int) $m[2];

View File

@@ -121,7 +121,7 @@ final class DibiTranslator extends DibiObject
array($this, 'cb'),
substr($arg, $toSkip)
);
if (preg_last_error()) throw new PcreException;
if (preg_last_error()) throw new DibiPcreException;
}
continue;
}
@@ -379,7 +379,7 @@ final class DibiTranslator extends DibiObject
array($this, 'cb'),
substr($value, $toSkip)
);
if (preg_last_error()) throw new PcreException;
if (preg_last_error()) throw new DibiPcreException;
}
return $value;