From e64e33494aa943dde14e83b0b1ac354596a971a0 Mon Sep 17 00:00:00 2001 From: romanb Date: Fri, 12 Sep 2008 13:08:01 +0000 Subject: [PATCH] added base exception --- .../Common/Exceptions/DoctrineException.php | 24 +++++++++++++++++++ lib/Doctrine/ORM/Exceptions/ORMException.php | 2 +- 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 lib/Doctrine/Common/Exceptions/DoctrineException.php diff --git a/lib/Doctrine/Common/Exceptions/DoctrineException.php b/lib/Doctrine/Common/Exceptions/DoctrineException.php new file mode 100644 index 000000000..4a331dbff --- /dev/null +++ b/lib/Doctrine/Common/Exceptions/DoctrineException.php @@ -0,0 +1,24 @@ +_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'."); + } +} + +?> \ No newline at end of file diff --git a/lib/Doctrine/ORM/Exceptions/ORMException.php b/lib/Doctrine/ORM/Exceptions/ORMException.php index e3f43aeba..99e6db428 100644 --- a/lib/Doctrine/ORM/Exceptions/ORMException.php +++ b/lib/Doctrine/ORM/Exceptions/ORMException.php @@ -33,7 +33,7 @@ * @author Konsta Vesterinen * @author Roman Borschel */ -class Doctrine_ORM_Exceptions_ORMException extends Doctrine_Shared_Exceptions_DoctrineException +class Doctrine_ORM_Exceptions_ORMException extends Doctrine_Common_Exceptions_DoctrineException { }