APIdia Launch Partner
Top Description Fields Constructors Methods
java.beans

public Class PropertyVetoException

extends Exception
Class Inheritance
Imports
java.io.Serial

A PropertyVetoException is thrown when a proposed change to a property represents an unacceptable value.
Since
1.1

Field Summary

Modifier and TypeField and Description
private PropertyChangeEvent
evt

A PropertyChangeEvent describing the vetoed change.

private static final long
serialVersionUID

Hides java.lang.Exception.serialVersionUID.

Use serialVersionUID from JDK 1.7 for interoperability.

Constructor Summary

AccessConstructor and Description
public
PropertyVetoException(String
Descriptive message
mess
,
PropertyChangeEvent
A PropertyChangeEvent describing the vetoed change.
evt
)

Constructs a PropertyVetoException with a detailed message.

Method Summary

Modifier and TypeMethod and Description
public PropertyChangeEvent

Returns:

A PropertyChangeEvent describing the vetoed change.
getPropertyChangeEvent
()

Gets the vetoed PropertyChangeEvent.

Field Detail

evtback to summary
private PropertyChangeEvent evt

A PropertyChangeEvent describing the vetoed change.

serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.lang.Exception.serialVersionUID.

Use serialVersionUID from JDK 1.7 for interoperability.

Annotations
@Serial

Constructor Detail

PropertyVetoExceptionback to summary
public PropertyVetoException(String mess, PropertyChangeEvent evt)

Constructs a PropertyVetoException with a detailed message.

Parameters
mess:String

Descriptive message

evt:PropertyChangeEvent

A PropertyChangeEvent describing the vetoed change.

Method Detail

getPropertyChangeEventback to summary
public PropertyChangeEvent getPropertyChangeEvent()

Gets the vetoed PropertyChangeEvent.

Returns:PropertyChangeEvent

A PropertyChangeEvent describing the vetoed change.