Session.class.php 493 Bytes
Newer Older
doctrine's avatar
doctrine committed
1
<?php
doctrine's avatar
doctrine committed
2
require_once(Doctrine::getPath().DIRECTORY_SEPARATOR."Exception.class.php");
doctrine's avatar
doctrine committed
3 4 5 6 7 8 9 10 11 12 13
/**
 * thrown when user tries to get the current 
 * session and there are no open sessions
 */
class Doctrine_Session_Exception extends Doctrine_Exception {
    public function __construct() {
        parent::__construct("There are no opened sessions. Use 
                             Doctrine_Manager::getInstance()->openSession() to open a new session.",Doctrine::ERR_NO_SESSIONS);
    }
}
?>