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