PropertyVetoException

  • PropertyVetoException signals that an attempt to change a property's value has been rejected.

  • It's a subclass of Exception and provides details about the vetoed change.

  • The exception includes a message explaining the reason for the veto and the associated PropertyChangeEvent.

  • You can access the PropertyChangeEvent using the getPropertyChangeEvent() method.

public class PropertyVetoException extends Exception

Indicates that a proposed property change is unacceptable.

Public Constructor Summary

PropertyVetoException(String message, PropertyChangeEvent event)

Constructs an instance with a message and the change event.

Public Method Summary

PropertyChangeEvent
getPropertyChangeEvent()

Gets the property change event.

Inherited Method Summary

Public Constructors

public PropertyVetoException (String message, PropertyChangeEvent event)

Constructs an instance with a message and the change event.

Parameters
message A description of the veto.
event The event that was vetoed.

Public Methods

public PropertyChangeEvent getPropertyChangeEvent ()

Gets the property change event.

Returns