home *** CD-ROM | disk | FTP | other *** search
/ Apple Developer Connection Student Program / ADC Tools Sampler CD Disk 3 1999.iso / Metrowerks CodeWarrior / Java Support / Java_Source / Java2 / src / java / beans / PropertyVetoException.java < prev    next >
Encoding:
Java Source  |  1999-05-28  |  1.4 KB  |  54 lines  |  [TEXT/CWIE]

  1. /*
  2.  * @(#)PropertyVetoException.java    1.11 98/09/21
  3.  *
  4.  * Copyright 1996-1998 by Sun Microsystems, Inc.,
  5.  * 901 San Antonio Road, Palo Alto, California, 94303, U.S.A.
  6.  * All rights reserved.
  7.  * 
  8.  * This software is the confidential and proprietary information
  9.  * of Sun Microsystems, Inc. ("Confidential Information").  You
  10.  * shall not disclose such Confidential Information and shall use
  11.  * it only in accordance with the terms of the license agreement
  12.  * you entered into with Sun.
  13.  */
  14.  
  15. package java.beans;
  16.  
  17.  
  18. /**
  19.  * A PropertyVetoException is thrown when a proposed change to a
  20.  * property represents an unacceptable value.
  21.  */
  22.  
  23. public
  24. class PropertyVetoException extends Exception {
  25.  
  26.  
  27.     /**
  28.      * Constructs a <code>PropertyVetoException</code> with a 
  29.      * detailed message.
  30.      *
  31.      * @param mess Descriptive message
  32.      * @param evt A PropertyChangeEvent describing the vetoed change.
  33.      */
  34.     public PropertyVetoException(String mess, PropertyChangeEvent evt) {
  35.         super(mess);
  36.     this.evt = evt;    
  37.     }
  38.  
  39.      /**
  40.      * Gets the vetoed <code>PropertyChangeEvent</code>.
  41.      *
  42.      * @return A PropertyChangeEvent describing the vetoed change.
  43.      */
  44.     public PropertyChangeEvent getPropertyChangeEvent() {
  45.     return evt;
  46.     }
  47.  
  48.     /**
  49.      * A PropertyChangeEvent describing the vetoed change.
  50.      * @serial
  51.      */
  52.     private PropertyChangeEvent evt;
  53. }
  54.