1. /*
  2. * @(#)IllegalPathStateException.java 1.6 01/11/29
  3. *
  4. * Copyright 2002 Sun Microsystems, Inc. All rights reserved.
  5. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  6. */
  7. package java.awt.geom;
  8. /**
  9. * The <code>IllegalPathStateException</code> represents an
  10. * exception that is thrown if an operation is performed on a path
  11. * that is in an illegal state with respect to the particular
  12. * operation being performed, such as appending a path segment
  13. * to a {@link GeneralPath} without an initial moveto.
  14. *
  15. * @version 13 Oct 1997
  16. */
  17. public class IllegalPathStateException extends RuntimeException {
  18. /**
  19. * Constructs an <code>IllegalPathStateException</code> with no
  20. * detail message.
  21. *
  22. * @since JDK1.2
  23. */
  24. public IllegalPathStateException() {
  25. }
  26. /**
  27. * Constructs an <code>IllegalPathStateException</code> with the
  28. * specified detail message.
  29. * @param s the detail message
  30. * @since JDK1.2
  31. */
  32. public IllegalPathStateException(String s) {
  33. super (s);
  34. }
  35. }