# HG changeset patch # User Sylvain Thénault # Date 1251217591 -7200 # Node ID 89d97d7c05084e5700d1929954bb9776731ce798 # Parent 5082dec70ed8541a33c1ff6a78fab0ae31df52f0 [wf] use custom exception class diff -r 5082dec70ed8 -r 89d97d7c0508 entities/wfobjs.py --- a/entities/wfobjs.py Tue Aug 25 18:26:05 2009 +0200 +++ b/entities/wfobjs.py Tue Aug 25 18:26:31 2009 +0200 @@ -16,6 +16,7 @@ from cubicweb.interfaces import IWorkflowable from cubicweb.common.mixins import MI_REL_TRIGGERS +class WorkflowException(Exception): pass class Workflow(AnyEntity): id = 'Workflow' @@ -160,7 +161,7 @@ def __init__(self, *args, **kwargs): if self.id == 'BaseTransition': - raise Exception('should not be instantiated') + raise WorkflowException('should not be instantiated') super(BaseTransition, self).__init__(*args, **kwargs) @property