Olá Pessoal, estou com o seguinte código:
public void inserirDados(){
try {
String query = "insert into " +
"tag(tag,descricao,id_library,result_blast,domin_func,categoria,sequencia) " +
"values(\'" + tag + "\','" + descricao + "\'," + id_library + ",\'" + result_blast + "\','" + domin_func +"\','" + categoria + "\','" + sequencia + "\')";
}catch (SQLException e){
System.out.println("Erro na inserção:"+ e.getMessage());
}
}
E está dando o seguinte erro:Tag.java:90: exception java.sql.SQLException is never thrown in body of corresponding try statement
}catch (SQLException e){
^
1 error
Alguém poderia me dizer o q está acontecendo e o q tenho q fazer pra funcionar ok!!
Obrigada a todos!!
