1
0
mirror of synced 2024-12-15 07:36:03 +03:00
doctrine2/lib/Doctrine/Connection/Exception.php
2006-09-26 15:00:13 +00:00

14 lines
474 B
PHP

<?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);
}
}