create UserError exception
Modules can raise this exception when they want to print errors to user
This commit is contained in:
parent
b4154b5843
commit
aea269e9f6
21 changed files with 68 additions and 47 deletions
|
|
@ -20,13 +20,13 @@
|
|||
|
||||
import datetime
|
||||
|
||||
from .base import IBaseCap, CapBaseObject, StringField, DateField
|
||||
from .base import IBaseCap, CapBaseObject, StringField, DateField, UserError
|
||||
|
||||
|
||||
__all__ = ['ChatException', 'ChatMessage', 'ICapChat']
|
||||
|
||||
|
||||
class ChatException(Exception):
|
||||
class ChatException(UserError):
|
||||
"""
|
||||
Exception raised when there is a problem with the chat.
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue