1. /*
  2. * @(#)IllegalStateException.java 1.11 03/01/23
  3. *
  4. * Copyright 2003 Sun Microsystems, Inc. All rights reserved.
  5. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  6. */
  7. package java.lang;
  8. /**
  9. * Signals that a method has been invoked at an illegal or
  10. * inappropriate time. In other words, the Java environment or
  11. * Java application is not in an appropriate state for the requested
  12. * operation.
  13. *
  14. * @author Jonni Kanerva
  15. * @version 1.11, 01/23/03
  16. * @since JDK1.1
  17. */
  18. public
  19. class IllegalStateException extends RuntimeException {
  20. /**
  21. * Constructs an IllegalStateException with no detail message.
  22. * A detail message is a String that describes this particular exception.
  23. */
  24. public IllegalStateException() {
  25. super();
  26. }
  27. /**
  28. * Constructs an IllegalStateException with the specified detail
  29. * message. A detail message is a String that describes this particular
  30. * exception.
  31. *
  32. * @param s the String that contains a detailed message
  33. */
  34. public IllegalStateException(String s) {
  35. super(s);
  36. }
  37. }