Add custom exceptions to the document state app.

Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
Roberto Rosario
2017-08-26 22:02:47 -04:00
parent 56c4e841c5
commit f417219f61

View File

@@ -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"""