java中,遇到“Unhandled exception type……”怎么处理?
2007-10-08 18:12
337 查看
在Eclipse中写代码,对于初学者来说极易忘记异常的处理,在编辑环境中会被提示“Unhandled exception type……”” ,如图:
其实解决起来也很简单,只需把有这种异常的语句放在 try...catch... 语句中就行了,如图红色标识处:
就这样,问题解决了。
其实解决起来也很简单,只需把有这种异常的语句放在 try...catch... 语句中就行了,如图红色标识处:
就这样,问题解决了。
相关文章推荐
- java中,遇到“Unhandled exception type……”怎么处理?
- java中,遇到“Unhandled exception type……”怎么处理?
- Java “Unhandled exception type Exception”错误提示 (转)
- JAVA 新手问题: Request 编码编译出错,Unhandled exception type UnsupportedEncodingException
- JAVA 新手问题: Request 编码编译出错,Unhandled exception type UnsupportedEncodingException
- Json解析异常处理方式(JSONException: Value of type java.lang.String cannot be converted to JSONObject)
- Json解析异常处理方式(JSONException: Value of type java.lang.String cannot be converted to JSONObject)
- 异常处理--java.lang.reflect.MalformedParameterizedTypeException
- Android遇到java.lang.RuntimeException: Binary XML file line #20这样的问题怎么办
- 大数据开发中遇到的错误 java.lang.RuntimeException: java.io.IOException: invalid constant type: 18
- 怎么处理java.net.BindException: Address already in use: JVM_Bind
- 遇到Unhandled event loop exception No more handles 问题怎么解决
- 在使用Jsoup.connect时遇到Unhandled exception type IOException
- Java “Unhandled exception type Exception”错误提示
- 遇到错误javax.el.PropertyNotFoundException: Property 'start' not found on type java.lang.String
- Json解析异常处理方式(JSONException: Value of type java.lang.String cannot be converted to JSONObject)
- JAVA错误:使用rs.next()提示"Unhandled exception type SQLException“
- 启动amq时遇到java.net.URISyntaxException: Illegal character in hostname at index处理方法
- java读取数据库中的错误:"Unhandled exception type SQLException"
- Java “Unhandled exception type Exception”错误提示 (转)