Question

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

À quoi servent les sql entourant les parenthèses? Quelque chose?

Juste curieux.

Était-ce utile?

La solution

Réponse rapide - Rien.

Réponse plus longue - Il pourrait s'agir d'un vestige d'un casting en ligne:

((SomeMoreSpecificException)sqle).get...
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top