handleException

open fun handleException(context: CoroutineContext, exception: Throwable)

处理事件处理中未捕获的异常. 在构造器中的 coroutineContext 未提供 CoroutineExceptionHandler 情况下必须继承此函数.

exception 通常是 ExceptionInEventHandlerException. 可以获取事件: ExceptionInEventHandlerException.event