1 /* 2 * @(#)MalformedURLException.java 1.16 03/12/19 3 * 4 * Copyright 2004 Sun Microsystems, Inc. All rights reserved. 5 * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. 6 */ 7 8 package java.net; 9 10 import java.io.IOException; 11 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.16, 12/19/03 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 /** 29 * Constructs a <code>MalformedURLException</code> with the 30 * specified detail message. 31 * 32 * @param msg the detail message. 33 */ 34 public MalformedURLException(String msg) { 35 super(msg); 36 } 37 } 38