1. /*
  2. * @(#)MalformedURLException.java 1.15 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.net;
  8. import java.io.IOException;
  9. /**
  10. * Thrown to indicate that a malformed URL has occurred. Either no
  11. * legal protocol could be found in a specification string or the
  12. * string could not be parsed.
  13. *
  14. * @author Arthur van Hoff
  15. * @version 1.15, 01/23/03
  16. * @since JDK1.0
  17. */
  18. public class MalformedURLException extends IOException {
  19. /**
  20. * Constructs a <code>MalformedURLException</code> with no detail message.
  21. */
  22. public MalformedURLException() {
  23. }
  24. /**
  25. * Constructs a <code>MalformedURLException</code> with the
  26. * specified detail message.
  27. *
  28. * @param msg the detail message.
  29. */
  30. public MalformedURLException(String msg) {
  31. super(msg);
  32. }
  33. }