throw ex; // does not compile "Unhandled exception type Exception" }此错误只发生在Java6(或早期版本)中,因为首先,当我们构建"catch“块(catch(异常ex))时,ex指定的异常对象具有FirstException (或SecondException)类型。但是,当ex被重新抛出(throw ex)时,Java编译
但是KeyStoreException没有被捕获。我还能读到ProviderException。首先,我能理解为什么抛出两个异常,以及为什么不能捕获KeyStoreException。在我的密码里- generateKeyApi() when(e){05-26 12:33:20.104 3153 3153 E : at javax.crypto.Ke