Don't make NotConnectedException fatal

If such an exception ever happes when running a integration, then the
framework should not abort, but instead log the exception so that other
information is also logged.
This commit is contained in:
Florian Schmaus 2015-06-09 21:43:26 +02:00
parent b9782aa6bc
commit ffea35282c
1 changed files with 1 additions and 4 deletions

View File

@ -566,11 +566,8 @@ public class SmackIntegrationTestFramework {
return connection;
}
private static Exception throwFatalException(Throwable e) throws Error, NotConnectedException, NoResponseException,
private static Exception throwFatalException(Throwable e) throws Error, NoResponseException,
InterruptedException {
if (e instanceof NotConnectedException) {
throw (NotConnectedException) e;
}
if (e instanceof NoResponseException) {
throw (NoResponseException) e;
}