[Checkins] SVN: hurry.custom/trunk/ Subclass from common Error base class.

Martijn Faassen faassen at startifact.com
Mon Jun 15 09:48:49 EDT 2009


Log message for revision 101001:
  Subclass from common Error base class.
  

Changed:
  U   hurry.custom/trunk/CHANGES.txt
  U   hurry.custom/trunk/setup.py
  U   hurry.custom/trunk/src/hurry/custom/interfaces.py

-=-
Modified: hurry.custom/trunk/CHANGES.txt
===================================================================
--- hurry.custom/trunk/CHANGES.txt	2009-06-15 13:46:18 UTC (rev 101000)
+++ hurry.custom/trunk/CHANGES.txt	2009-06-15 13:48:49 UTC (rev 101001)
@@ -1,12 +1,12 @@
 Changes
 -------
 
-0.7 (unreleased)
-~~~~~~~~~~~~~~~~
+0.6.2 (unreleased)
+~~~~~~~~~~~~~~~~~
 
-- Nothing changed yet.
+* Both ``RenderError`` and ``CompileError`` subclass from a common 
+  ``Error`` base class.
 
-
 0.6.1 (2009-06-15)
 ~~~~~~~~~~~~~~~~~~
 

Modified: hurry.custom/trunk/setup.py
===================================================================
--- hurry.custom/trunk/setup.py	2009-06-15 13:46:18 UTC (rev 101000)
+++ hurry.custom/trunk/setup.py	2009-06-15 13:48:49 UTC (rev 101001)
@@ -15,7 +15,7 @@
 
 setup(
     name="hurry.custom",
-    version = '0.7dev',
+    version = '0.6.2dev',
     description="A framework for allowing customizing templates",
     long_description=long_description,    
     classifiers=[

Modified: hurry.custom/trunk/src/hurry/custom/interfaces.py
===================================================================
--- hurry.custom/trunk/src/hurry/custom/interfaces.py	2009-06-15 13:46:18 UTC (rev 101000)
+++ hurry.custom/trunk/src/hurry/custom/interfaces.py	2009-06-15 13:48:49 UTC (rev 101001)
@@ -156,11 +156,15 @@
         Raise a RenderError if the template cannot be rendered.
         """
 
-class CompileError(Exception):
+class Error(Exception):
+    """Base class of errors.
+    """
+    
+class CompileError(Error):
     """Error when a template is broken (cannot be parsed/compiled).
     """
 
-class RenderError(Exception):
+class RenderError(Error):
     """Error when an error cannot be rendered (incorrect input data or
     other run-time error.
     """



More information about the Checkins mailing list