java.beans类 PropertyVetoException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.beans.PropertyVetoException
Serializablepublic class PropertyVetoExceptionextends Exception
当某一属性的提议更改表示一个不可接受的值时,将抛出 PropertyVetoException。
序列化表格
PropertyVetoException(String mess, PropertyChangeEvent evt)
构造带详细消息的 PropertyVetoException。
Property ChangeEventgetPropertyChangeEvent()
获得禁止的 PropertyChangeEvent。
从类 java.lang.Throwable 继承的方法
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
PropertyVetoExceptionpublic PropertyVetoException(String mess, PropertyChangeEvent evt)构造带详细消息的 PropertyVetoException。
参数:mess - 描述性消息 evt - 描述所禁止更改的 PropertyChangeEvent。
getPropertyChangeEvent
public PropertyChangeEventgetPropertyChangeEvent()获得禁止的 PropertyChangeEvent。
返回:描述所禁止更改的 PropertyChangeEvent。[1]