java.beans
Class PropertyVetoException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.beans.PropertyVetoException
All Implemented Interfaces:
Serializable

public class PropertyVetoException
extends Exception

PropertyVetoException is thrown when a VetoableChangeListener doesn't like the proposed change.

Since:
1.1
See Also:
VetoableChangeListener, Serialized Form

Constructor Summary
PropertyVetoException(String msg, PropertyChangeEvent changeEvent)
          Instantiate this exception with the given message and property change.
 
Method Summary
 PropertyChangeEvent getPropertyChangeEvent()
          Get the PropertyChange event that was vetoed.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PropertyVetoException

public PropertyVetoException(String msg,
                             PropertyChangeEvent changeEvent)
Instantiate this exception with the given message and property change.

Parameters:
msg - the reason for the veto
changeEvent - the PropertyChangeEvent that was thrown
Method Detail

getPropertyChangeEvent

public PropertyChangeEvent getPropertyChangeEvent()
Get the PropertyChange event that was vetoed.

Returns:
the vetoed change