1 /*2 * @(#)PropertyVetoException.java 1.16 03/12/193 *4 * Copyright 2004 Sun Microsystems, Inc. All rights reserved.5 * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.6 */7 8 package java.beans;9 10 11 /**12 * A PropertyVetoException is thrown when a proposed change to a13 * property represents an unacceptable value.14 */15 16 public17 class PropertyVetoException extends Exception {18 19 20 /**21 * Constructs a <code>PropertyVetoException</code> with a 22 * detailed message.23 *24 * @param mess Descriptive message25 * @param evt A PropertyChangeEvent describing the vetoed change.26 */27 public PropertyVetoException(String mess, PropertyChangeEvent evt) {28 super(mess);29 this.evt = evt; 30 }31 32 /**33 * Gets the vetoed <code>PropertyChangeEvent</code>.34 *35 * @return A PropertyChangeEvent describing the vetoed change.36 */37 public PropertyChangeEvent getPropertyChangeEvent() {38 return evt;39 }40 41 /**42 * A PropertyChangeEvent describing the vetoed change.43 * @serial44 */45 private PropertyChangeEvent evt;46 }47