else if ((t instanceof CannotConnectException) ||
(t instanceof IOException) ||
(t instanceof ConnectionFailedException))
{
log.warn("Captured Exception:" + t, t);
return new MessagingNetworkFailureException((Exception)t);
}
else
{
log.error("Failed", t);
return new MessagingJMSException("Failed to invoke", t);