1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-11-26 05:52:06 +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; return connection;
} }
private static Exception throwFatalException(Throwable e) throws Error, NotConnectedException, NoResponseException, private static Exception throwFatalException(Throwable e) throws Error, NoResponseException,
InterruptedException { InterruptedException {
if (e instanceof NotConnectedException) {
throw (NotConnectedException) e;
}
if (e instanceof NoResponseException) { if (e instanceof NoResponseException) {
throw (NoResponseException) e; throw (NoResponseException) e;
} }