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