【发布时间】:2013-07-26 18:26:09
【问题描述】:
当我添加一个 throw Exception 来运行或初始化时,我有一个错误提示:
ray.java:115: error run() in xray cannot implement run() in Runnable
public void run() throws Exception(
^
overriden method does not throw Exception
1 error
我需要 try{..}catch 以获取 URL 作品。 try{...}catch 工作需要抛出异常。
【问题讨论】:
-
彻底阅读覆盖的概念。