-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPropertyVetoException.java
More file actions
64 lines (57 loc) · 1.16 KB
/
PropertyVetoException.java
File metadata and controls
64 lines (57 loc) · 1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
/*
* Copyright (c) 1996, 2009, Oracle and/or its affiliates. All rights reserved.
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*/
package java.beans;
/**
* A PropertyVetoException is thrown when a proposed change to a
* property represents an unacceptable value.
*/
public
class PropertyVetoException extends Exception {
private static final long serialVersionUID = 129596057694162164L;
/**
* Constructs a <code>PropertyVetoException</code> with a
* detailed message.
*
* @param mess Descriptive message
* @param evt A PropertyChangeEvent describing the vetoed change.
*/
public PropertyVetoException(String mess, PropertyChangeEvent evt) {
super(mess);
this.evt = evt;
}
/**
* Gets the vetoed <code>PropertyChangeEvent</code>.
*
* @return A PropertyChangeEvent describing the vetoed change.
*/
public PropertyChangeEvent getPropertyChangeEvent() {
return evt;
}
/**
* A PropertyChangeEvent describing the vetoed change.
* @serial
*/
private PropertyChangeEvent evt;
}