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