java.beans
类 PropertyVetoException

java.lang.Object
  继承者 java.lang.Throwable
      继承者 java.lang.Exception
          继承者 java.beans.PropertyVetoException
所有已实现的接口:
Serializable

public class PropertyVetoException
   
   
   
     
extends Exception

当某一属性的提议更改表示一个不可接受的值时,将抛出 PropertyVetoException。

另请参见:
序列化表格

构造方法摘要
PropertyVetoException(String mess, PropertyChangeEvent evt)
          构造带详细消息的 PropertyVetoException
 
方法摘要
 PropertyChangeEventgetPropertyChangeEvent()
          获得禁止的 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
 

构造方法详细信息

PropertyVetoException

public PropertyVetoException(String mess,
                             PropertyChangeEvent evt)
构造带详细消息的 PropertyVetoException

参数:
mess - 描述性消息
evt - 描述所禁止更改的 PropertyChangeEvent。
方法详细信息

getPropertyChangeEvent

public PropertyChangeEvent getPropertyChangeEvent()
获得禁止的 PropertyChangeEvent

返回:
描述所禁止更改的 PropertyChangeEvent。