1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-12-22 18:48:00 +01:00

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

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;
}