added base exception
This commit is contained in:
parent
0223d7a454
commit
e64e33494a
24
lib/Doctrine/Common/Exceptions/DoctrineException.php
Normal file
24
lib/Doctrine/Common/Exceptions/DoctrineException.php
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
class Doctrine_Common_Exceptions_DoctrineException extends Exception
|
||||||
|
{
|
||||||
|
private $_innerException;
|
||||||
|
|
||||||
|
public function __construct($message = "", Exception $innerException = null)
|
||||||
|
{
|
||||||
|
parent::__construct($message);
|
||||||
|
$this->_innerException = $innerException;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getInnerException()
|
||||||
|
{
|
||||||
|
return $this->_innerException;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static function notImplemented($method, $class)
|
||||||
|
{
|
||||||
|
return new self("The method '$method' is not implemented in the class '$class'.");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
?>
|
@ -33,7 +33,7 @@
|
|||||||
* @author Konsta Vesterinen <kvesteri@cc.hut.fi>
|
* @author Konsta Vesterinen <kvesteri@cc.hut.fi>
|
||||||
* @author Roman Borschel <roman@code-factory.org>
|
* @author Roman Borschel <roman@code-factory.org>
|
||||||
*/
|
*/
|
||||||
class Doctrine_ORM_Exceptions_ORMException extends Doctrine_Shared_Exceptions_DoctrineException
|
class Doctrine_ORM_Exceptions_ORMException extends Doctrine_Common_Exceptions_DoctrineException
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user