Pregunta

  try {
      ...
  }  catch (SQLException sqle) {
      String theError = (sqle).getSQLState();
      ...
  }

¿Qué hace el sql circundante con paréntesis? ¿Algo?

Simplemente curioso.

¿Fue útil?

Solución

Respuesta rápida: nada.

Respuesta más larga: puede ser un vestigio remanente de un reparto en línea:

((SomeMoreSpecificException)sqle).get...
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top