一个 是URL格式可能不正确而导致出现非法地址格式异常(MalformedURLException), 它会在打开地址的时候被检测到。另外一个异常是输入输出异常(IOException), 它可以在很多地方发生,例如地址可能是有效的,...
基于16个网页-相关网页
注意:类URL的构造方法都声明抛弃非运行时异常(MalformedURLException),因此生成URL对象时,必须要对这一异常进行处理,通常是用try-catch语句进行捕获。格式如下:
The method will catch other exceptions such as MalformedURLException and IOException and throw the custom exception so that it can be caught by the GWT client.
方法捕捉其他异常(比如MalformedURLException和IOException)并抛出定制的异常,让GWT客户机可以捕捉到它。
youdao
应用推荐
模块上移
模块下移
不移动