Author: romanb
Date: 2008-09-12 14:08:01 +0100 (Fri, 12 Sep 2008)
New Revision: 4946

Added:
   trunk/lib/Doctrine/Common/Exceptions/
   trunk/lib/Doctrine/Common/Exceptions/DoctrineException.php
Modified:
   trunk/lib/Doctrine/ORM/Exceptions/ORMException.php
Log:
added base exception

Added: trunk/lib/Doctrine/Common/Exceptions/DoctrineException.php
===================================================================
--- trunk/lib/Doctrine/Common/Exceptions/DoctrineException.php                  
        (rev 0)
+++ trunk/lib/Doctrine/Common/Exceptions/DoctrineException.php  2008-09-12 
13:08:01 UTC (rev 4946)
@@ -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'.");
+    }
+}
+
+?>
\ No newline at end of file

Modified: trunk/lib/Doctrine/ORM/Exceptions/ORMException.php
===================================================================
--- trunk/lib/Doctrine/ORM/Exceptions/ORMException.php  2008-09-12 13:07:08 UTC 
(rev 4945)
+++ trunk/lib/Doctrine/ORM/Exceptions/ORMException.php  2008-09-12 13:08:01 UTC 
(rev 4946)
@@ -33,7 +33,7 @@
  * @author      Konsta Vesterinen <[EMAIL PROTECTED]>
  * @author      Roman Borschel <[EMAIL PROTECTED]>
  */
-class Doctrine_ORM_Exceptions_ORMException extends 
Doctrine_Shared_Exceptions_DoctrineException
+class Doctrine_ORM_Exceptions_ORMException extends 
Doctrine_Common_Exceptions_DoctrineException
 {
 
 }


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"doctrine-svn" group.
 To post to this group, send email to [email protected]
 To unsubscribe from this group, send email to [EMAIL PROTECTED]
 For more options, visit this group at 
http://groups.google.co.uk/group/doctrine-svn?hl=en-GB
-~----------~----~----~----~------~----~------~--~---

Reply via email to