java.beans
Class PropertyVetoException
java.lang.Object
java.lang.Throwable
java.lang.Exception
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
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
PropertyVetoException
public PropertyVetoException(String msg,
PropertyChangeEvent changeEvent)
- Instantiate this exception with the given message and property change.
- Parameters:
msg
- the reason for the vetochangeEvent
- the PropertyChangeEvent that was thrown
getPropertyChangeEvent
public PropertyChangeEvent getPropertyChangeEvent()
- Get the PropertyChange event that was vetoed.
- Returns:
- the vetoed change