public void onClick() throws SQLException
try {
// Do something
} catch(MySQLIntegrityConstraintViolationException e) {
//Can i convert this exception to SQL Exception
}
我可以将 MySQLIntegrityConstraintViolationException 转换为方法抛出的 SQLException 吗?