代码:
    outerMethod {
        @Override
        public void run() {
                innerMethod throws IOException
                }
    }
在线程中执行的方法抛出检查异常 - IOException。我需要在主线程中处理这个异常。喜欢:
outerMethod() throws IOException
   {
        @Override
        public void run() {
                innerMethod() throws IOException
                }
    }
这可能吗?如果没有,有什么更好的方法来做到这一点?
谢谢。