社区
Eclipse
帖子详情
Unhandled exception type SQLException
zcm211
2008-05-18 09:57:30
[问题]Unhandled exception type SQLException
我使用java的结果集里的getString("us_name")方法 为什么也会有这个提示
us_name是我自定义的一个变量,它的值是中文.
发生这个异常的可能原因是什么.
...全文
1419
3
打赏
收藏
Unhandled exception type SQLException
[问题]Unhandled exception type SQLException 我使用java的结果集里的getString("us_name")方法 为什么也会有这个提示 us_name是我自定义的一个变量,它的值是中文. 发生这个异常的可能原因是什么.
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
3 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
l747474
2011-02-14
打赏
举报
回复
有方法抛出了异常
没捕获
zcm211
2008-05-20
打赏
举报
回复
谢谢 问题解决了 不知道为什么就好了
伟大的左前卫
2008-05-18
打赏
举报
回复
try{}catch
System.Runtime.InteropServices.COM
Exception
的解决方法
完美解决“换另一台电脑上用VS2008继续开发web项目时出现 ... 您可能感兴趣的文章:System.Data.SqlClient.
Sql
Exception
: 无法打开登录所请求的数据库 登录失败。System.Data.SQLite 数据库详细介绍SQL Server出现Syst
java读取数据库中的错误:"Un
handle
d
exception
type
SQL
Exception
"
使用rs.next()提示"Un
handle
d
exception
type
SQL
Exception
" 两种解决方法,第一种:try{ while(rs.next()) { System.out.println("id"+rs.getString(1)); System.out.println("name"+rs.getString...
Un
handle
d
exception
type
SQL
Exception
异常
class Example8_4 { public static void main(String args[]){ method(); //这一行提示un
handle
d
exception
type
Exception
} static void method()throws
Exception
{ try{ System.out.pr
使用rs.next()提示"Un
handle
d
exception
type
SQL
Exception
"两种解决方法
第一种:try{ while(rs.next()) { System.out.println("id"+rs.getString(1)); System.out.println("name"+rs.getString(2)); } ...}catch(
Exception
e) ...第二种:throws
SQL
Exception
一下
Un
handle
d
exception
type
Parse
Exception
1、当编辑器提示:Un
handle
d
exception
type
Parse
Exception
异常的时候,说明在该方法中抛出
Exception
异常,但是没有进行相关处理功能。 2、解决方法:对该方法进行try{} catch{} 异常处理。
Eclipse
58,452
社区成员
49,451
社区内容
发帖
与我相关
我的任务
Eclipse
Java Eclipse
复制链接
扫一扫
分享
社区描述
Java Eclipse
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章