mirror of
https://github.com/nonebot/nonebot2.git
synced 2025-07-17 03:20:54 +00:00
change Matcher class
This commit is contained in:
@ -1,8 +1,13 @@
|
||||
class BlockedException(Exception):
|
||||
"""Block a message from further handling"""
|
||||
class PausedException(Exception):
|
||||
"""Block a message from further handling and try to receive a new message"""
|
||||
pass
|
||||
|
||||
|
||||
class RejectedException(Exception):
|
||||
"""Reject a message and return current handler back"""
|
||||
pass
|
||||
|
||||
|
||||
class FinishedException(Exception):
|
||||
"""Finish handling a message"""
|
||||
pass
|
||||
|
Reference in New Issue
Block a user