【发布时间】:2012-09-21 01:59:09
【问题描述】:
public void onClick() throws SQLException
try {
// Do something
} catch(MySQLIntegrityConstraintViolationException e) {
//Can i convert this exception to SQL Exception
}
我可以将 MySQLIntegrityConstraintViolationException 转换为方法抛出的 SQLException 吗?
【问题讨论】: