1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-11-29 17: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;
} }