Commit 65c9c3ab authored by doctrine's avatar doctrine

Query_Exception added

parent b6a07b65
...@@ -721,7 +721,12 @@ class Doctrine_Query extends Doctrine_Access { ...@@ -721,7 +721,12 @@ class Doctrine_Query extends Doctrine_Access {
$table = $this->load($reference); $table = $this->load($reference);
} }
} }
/**
* returns Doctrine::FETCH_* constant
*
* @param string $mode
* @return integer
*/
private function parseFetchMode($mode) { private function parseFetchMode($mode) {
switch(strtolower($mode)): switch(strtolower($mode)):
case "i": case "i":
......
<?php
require_once(Doctrine::getPath().DIRECTORY_SEPARATOR."Exception.class.php");
class Doctrine_Query_Exception extends Doctrine_Exception { }
?>
<?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);
}
}
?>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment