ExceptionInEventHandlerException

class ExceptionInEventHandlerException(event: Event, message: String, cause: Throwable) : IllegalStateException

EventHandler 标记的函数在处理事件时产生异常时包装异常并重新抛出

Constructors

ExceptionInEventHandlerException
Link copied to clipboard
fun ExceptionInEventHandlerException(event: Event, message: String = "Exception in EventHandler", cause: Throwable)

Properties

cause
Link copied to clipboard
open override val cause: Throwable

原异常

event
Link copied to clipboard
val event: Event

当时正在处理的事件

message
Link copied to clipboard
open override val message: String