JavaTM 2 Platform
Standard Ed. 6

java.net
类 MalformedURLException

java.lang.Object
  继承者 java.lang.Throwable
      继承者 java.lang.Exception
          继承者 java.io.IOException
              继承者 java.net.MalformedURLException
所有已实现的接口:
Serializable

public class MalformedURLException
extends IOException

抛出这一异常指示出现了错误的 URL。或者在规范字符串中找不到任何合法协议,或者无法解析字符串。

从以下版本开始:
JDK1.0
另请参见:
序列化表格

构造方法摘要
MalformedURLException()
          构造不带详细消息的 MalformedURLException
MalformedURLException(String msg)
          构造带指定详细消息的 MalformedURLException
 
方法摘要
 
从类 java.lang.Throwable 继承的方法
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

构造方法详细信息

MalformedURLException

public MalformedURLException()
构造不带详细消息的 MalformedURLException


MalformedURLException

public MalformedURLException(String msg)
构造带指定详细消息的 MalformedURLException

参数:
msg - 详细消息。

JavaTM 2 Platform
Standard Ed. 6

提交错误或意见

版权所有 2008 Sun Microsystems, Inc. 保留所有权利。请遵守GNU General Public License, version 2 only