1
0
mirror of synced 2025-03-22 07:53:49 +03:00

Query_Exception added

This commit is contained in:
doctrine 2006-05-30 07:26:42 +00:00
parent b6a07b65a5
commit 65c9c3ab75
3 changed files with 24 additions and 1 deletions

View File

@ -721,7 +721,12 @@ class Doctrine_Query extends Doctrine_Access {
$table = $this->load($reference);
}
}
/**
* returns Doctrine::FETCH_* constant
*
* @param string $mode
* @return integer
*/
private function parseFetchMode($mode) {
switch(strtolower($mode)):
case "i":

View File

@ -0,0 +1,5 @@
<?php
require_once(Doctrine::getPath().DIRECTORY_SEPARATOR."Exception.class.php");
class Doctrine_Query_Exception extends Doctrine_Exception { }
?>

View File

@ -0,0 +1,13 @@
<?php
require_once(Doctrine::getPath().DIRECTORY_SEPARATOR."Exception.class.php");
/**
* 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);
}
}
?>