home *** CD-ROM | disk | FTP | other *** search
/ Java 1.2 How-To / JavaHowTo.iso / 3rdParty / jbuilder / unsupported / JDK1.2beta3 / SOURCE / SRC.ZIP / java / awt / dnd / InvalidDnDOperationException.java < prev    next >
Encoding:
Java Source  |  1998-03-20  |  1.4 KB  |  49 lines

  1. /*
  2.  * @(#)InvalidDnDOperationException.java    1.2 98/03/18
  3.  *
  4.  * Copyright 1997 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.awt.dnd;
  16.  
  17. /**
  18.  * <p>
  19.  * This exception is thrown by various methods in the java.awt.dnd package.
  20.  * It is usually thrown to indicate that the target in question is unable
  21.  * to undertake the requested operation that the present time, since the
  22.  * undrelying DnD system is not in the appropriate state.
  23.  * </p>
  24.  *
  25.  * @version 1.2
  26.  * @since JDK1.2
  27.  *
  28.  */
  29.  
  30. public class InvalidDnDOperationException extends IllegalStateException {
  31.     
  32.     static private String dft_msg = "The operation requested cannot be performed by the DnD system since it is not in the appropriate state";
  33.  
  34.     /**
  35.      * Create a default Exception
  36.      */
  37.  
  38.     public InvalidDnDOperationException() { super(dft_msg); }
  39.  
  40.     /**
  41.      * Create an Exception with its own descriptive message
  42.      *
  43.      * @param msg the detail message
  44.      */
  45.  
  46.     public InvalidDnDOperationException(String msg) { super(msg); }
  47.  
  48. }
  49.