KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > java > awt > dnd > InvalidDnDOperationException


1 /*
2  * @(#)InvalidDnDOperationException.java 1.12 03/12/19
3  *
4  * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
5  * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
6  */

7
8 package java.awt.dnd;
9
10 /**
11  * This exception is thrown by various methods in the java.awt.dnd package.
12  * It is usually thrown to indicate that the target in question is unable
13  * to undertake the requested operation that the present time, since the
14  * undrelying DnD system is not in the appropriate state.
15  *
16  * @version 1.12, 12/19/03
17  * @since 1.2
18  */

19
20 public class InvalidDnDOperationException extends IllegalStateException JavaDoc {
21     
22     static private String JavaDoc dft_msg = "The operation requested cannot be performed by the DnD system since it is not in the appropriate state";
23
24     /**
25      * Create a default Exception
26      */

27
28     public InvalidDnDOperationException() { super(dft_msg); }
29
30     /**
31      * Create an Exception with its own descriptive message
32      * <P>
33      * @param msg the detail message
34      */

35
36     public InvalidDnDOperationException(String JavaDoc msg) { super(msg); }
37
38 }
39
40
41
42
Popular Tags