. */ #namespace Doctrine::ORM::Exceptions; /** * Doctrine_Exception * * @package Doctrine * @subpackage Exception * @license http://www.opensource.org/licenses/lgpl-license.php LGPL * @link www.phpdoctrine.org * @since 1.0 * @version $Revision$ * @author Konsta Vesterinen * @author Roman Borschel * @todo Rename to DoctrineException */ class Doctrine_Exception extends Exception { private $_innerException; public function __construct($message = "", Doctrine_Exception $innerException = null) { parent::__construct($message); $this->_innerException = $innerException; } public function getInnerException() { return $this->_innerException; } public static function notYetImplemented($method, $class) { return new self("The method '$method' is not implemented in the class '$class'."); } }