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. package java.awt.dnd;
  8. /**
  9. * This exception is thrown by various methods in the java.awt.dnd package.
  10. * It is usually thrown to indicate that the target in question is unable
  11. * to undertake the requested operation that the present time, since the
  12. * undrelying DnD system is not in the appropriate state.
  13. *
  14. * @version 1.12, 12/19/03
  15. * @since 1.2
  16. */
  17. public class InvalidDnDOperationException extends IllegalStateException {
  18. static private String dft_msg = "The operation requested cannot be performed by the DnD system since it is not in the appropriate state";
  19. /**
  20. * Create a default Exception
  21. */
  22. public InvalidDnDOperationException() { super(dft_msg); }
  23. /**
  24. * Create an Exception with its own descriptive message
  25. * <P>
  26. * @param msg the detail message
  27. */
  28. public InvalidDnDOperationException(String msg) { super(msg); }
  29. }