2006-08-22 03:16:55 +04:00
|
|
|
<?php
|
|
|
|
Doctrine::autoload('Doctrine_Exception');
|
|
|
|
/**
|
|
|
|
* thrown when user tries to get the current
|
|
|
|
* connection and there are no open connections
|
|
|
|
*/
|
|
|
|
class Doctrine_Connection_Exception extends Doctrine_Exception {
|
|
|
|
public function __construct() {
|
|
|
|
parent::__construct("There are no opened connections. Use
|
|
|
|
Doctrine_Manager::getInstance()->openConnection() to open a new connection.",Doctrine::ERR_NO_SESSIONS);
|
|
|
|
}
|
|
|
|
}
|
2006-09-04 02:46:30 +04:00
|
|
|
|