指示 NoneBot 应该忽略该事件。可由 PreProcessor 抛出。 参数: reason: 忽略事件的原因
| 65 | |
| 66 | |
| 67 | class IgnoredException(ProcessException): |
| 68 | """指示 NoneBot 应该忽略该事件。可由 PreProcessor 抛出。 |
| 69 | |
| 70 | 参数: |
| 71 | reason: 忽略事件的原因 |
| 72 | """ |
| 73 | |
| 74 | def __init__(self, reason: Any) -> None: |
| 75 | self.reason: Any = reason |
| 76 | |
| 77 | def __repr__(self) -> str: |
| 78 | return f"IgnoredException(reason={self.reason!r})" |
| 79 | |
| 80 | |
| 81 | class SkippedException(ProcessException): |
no outgoing calls