unreported exception java.lang.Exception; must be caught or declared to be thrown
生活随笔
收集整理的這篇文章主要介紹了
unreported exception java.lang.Exception; must be caught or declared to be thrown
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
public class AnatomyofaFlinkProgram
{
? ? public static void main(String[] args)
? ? {
}
}
?
改成
public class AnatomyofaFlinkProgram
{
? ? public static void main(String[] args) throws Exception
? ? {
}
}
?
| 異常 | 作用 |
| throws?Exception | 可以拋出任何checked異常 |
| throws?IOException | 拋出IO異常 |
?
總結
以上是生活随笔為你收集整理的unreported exception java.lang.Exception; must be caught or declared to be thrown的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 一起来捉妖朱雀位置 一加手机官网
- 下一篇: linux下面破解rar压缩包密码