create UserError exception

Modules can raise this exception when they want to print errors to user
This commit is contained in:
Romain Bignon 2012-04-25 13:43:52 +02:00
commit aea269e9f6
21 changed files with 68 additions and 47 deletions

View file

@ -19,14 +19,14 @@
from .base import IBaseCap, CapBaseObject, Field, StringField, DateField, \
IntField, DeltaField
IntField, DeltaField, UserError
__all__ = ['IssueError', 'Project', 'User', 'Version', 'Status', 'Attachment',
'Change', 'Update', 'Issue', 'Query', 'ICapBugTracker']
class IssueError(Exception):
class IssueError(UserError):
"""
Raised when there is an error with an issue.
"""