mirror of
https://github.com/dg/dibi.git
synced 2025-08-06 06:07:39 +02:00
updated for Nette 2.0 beta: exceptions
This commit is contained in:
@@ -38,12 +38,12 @@ class DibiMsSqlDriver extends DibiObject implements IDibiDriver, IDibiResultDriv
|
||||
|
||||
|
||||
/**
|
||||
* @throws NotSupportedException
|
||||
* @throws DibiNotSupportedException
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
if (!extension_loaded('mssql')) {
|
||||
throw new NotSupportedException("PHP extension 'mssql' is not loaded.");
|
||||
throw new DibiNotSupportedException("PHP extension 'mssql' is not loaded.");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -189,7 +189,7 @@ class DibiMsSqlDriver extends DibiObject implements IDibiDriver, IDibiResultDriv
|
||||
*/
|
||||
public function getReflector()
|
||||
{
|
||||
throw new NotSupportedException;
|
||||
throw new DibiNotSupportedException;
|
||||
}
|
||||
|
||||
|
||||
@@ -292,7 +292,7 @@ class DibiMsSqlDriver extends DibiObject implements IDibiDriver, IDibiResultDriv
|
||||
}
|
||||
|
||||
if ($offset) {
|
||||
throw new NotImplementedException('Offset is not implemented.');
|
||||
throw new DibiNotImplementedException('Offset is not implemented.');
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user