From f417219f61067dcb4bff6c08f9bbde21afce9c29 Mon Sep 17 00:00:00 2001 From: Roberto Rosario Date: Sat, 26 Aug 2017 22:02:47 -0400 Subject: [PATCH] Add custom exceptions to the document state app. Signed-off-by: Roberto Rosario --- mayan/apps/document_states/exceptions.py | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 mayan/apps/document_states/exceptions.py diff --git a/mayan/apps/document_states/exceptions.py b/mayan/apps/document_states/exceptions.py new file mode 100644 index 0000000000..3107219b97 --- /dev/null +++ b/mayan/apps/document_states/exceptions.py @@ -0,0 +1,9 @@ +from __future__ import unicode_literals + + +class WorkflowException(Exception): + """Base exception for the document states app""" + + +class WorkflowStateActionError(WorkflowException): + """Raise for errors during exection of workflow state actions"""