try { ... } catch (SQLException sqle) { String theError = (sqle).getSQLState(); ... }
What does the surrounding sqle parenthesis do? Anything?
sqle
Just curious.
The quick answer is nothing.
Longer answer. It could be a rudimentary remnant of an inline casting:
((SomeMoreSpecificException)sqle).get...