David Wall wrote:
>
> Again, I'm okay with closing it myself if there were an obvious way to
> detect that a given SQLException was in fact related to an unrecoverable I/O
> error. It's just that simple.
>
When we get the SQLSTATE patch in you'll be able to do:
if ((e.getSQLState() != null) && (e.getSQLState().equals("08S01")))
throw new ExplainException("Communication link error: " + e.getMessage());
--
Fernando Nasser
Red Hat Canada Ltd. E-Mail: fnasser@redhat.com
2323 Yonge Street, Suite #300
Toronto, Ontario M4P 2C9