1. /*
  2. * @(#)IllegalArgumentException.java 1.17 00/02/02
  3. *
  4. * Copyright 1994-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. * Thrown to indicate that a method has been passed an illegal or
  13. * inappropriate argument.
  14. *
  15. * @author unascribed
  16. * @version 1.17, 02/02/00
  17. * @see java.lang.Thread#setPriority(int)
  18. * @since JDK1.0
  19. */
  20. public
  21. class IllegalArgumentException extends RuntimeException {
  22. /**
  23. * Constructs an <code>IllegalArgumentException</code> with no
  24. * detail message.
  25. */
  26. public IllegalArgumentException() {
  27. super();
  28. }
  29. /**
  30. * Constructs an <code>IllegalArgumentException</code> with the
  31. * specified detail message.
  32. *
  33. * @param s the detail message.
  34. */
  35. public IllegalArgumentException(String s) {
  36. super(s);
  37. }
  38. }