Package java.net Previous
Previous
Java API
Java API
Index
Index
Next
Next

Class MalformedURLException

Constructors

public  class  java.net.MalformedURLException
    extends  java.io.IOException  
{
        // Constructors
    public MalformedURLException();	
    public MalformedURLException(String  msg);	
}

Thrown toindicate that a malformed URL has occurred. Either no legal protocol could be found in a specification string, or the string could not be parsed.


Constructors


MalformedURLException

public MalformedURLException() 

Constructs a MalformedURLException with no detail message.


MalformedURLException

public MalformedURLException(String  msg) 

Constructs a MalformedURLException with the specified detail message.

ParameterDescription
msg the detail message



© 1996 Sun Microsystems, Inc. All rights reserved.