mirror of
https://github.com/dg/dibi.git
synced 2025-08-08 23:26:49 +02:00
updated for Nette 2.0 beta: exceptions
This commit is contained in:
@@ -107,12 +107,12 @@ class DibiResult extends DibiObject implements IDataSource
|
||||
/**
|
||||
* Safe access to property $driver.
|
||||
* @return IDibiResultDriver
|
||||
* @throws InvalidStateException
|
||||
* @throws RuntimeException
|
||||
*/
|
||||
private function getDriver()
|
||||
{
|
||||
if ($this->driver === NULL) {
|
||||
throw new InvalidStateException('Result-set was released from memory.');
|
||||
throw new RuntimeException('Result-set was released from memory.');
|
||||
}
|
||||
|
||||
return $this->driver;
|
||||
|
Reference in New Issue
Block a user