public class EventException extends RuntimeException
EventException
像在其方法描述中指定。
另见Document Object Model (DOM) Level 2 Events Specification 。
Modifier and Type | Field and Description |
---|---|
short |
code
|
static short |
UNSPECIFIED_EVENT_TYPE_ERR
如果
Event 的类型没有通过在方法被调用之前初始化事件来指定。
|
Constructor and Description |
---|
EventException(short code,
String message)
|
addSuppressed,
fillInStackTrace,
getCause, getLocalizedMessage,
getMessage, getStackTrace,
getSuppressed, initCause,
printStackTrace,
printStackTrace,
printStackTrace,
setStackTrace,
toString
public short code
public static final short UNSPECIFIED_EVENT_TYPE_ERR
Event
的类型没有通过在调用该方法之前初始化事件来指定。
事件类型的null
为null
或空字符串也将触发此异常。
public EventException(short code, String message)