1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-11-22 14:22:05 +01:00

SASL: Add missing InterruptedException to "else if" cascade

This commit is contained in:
Florian Schmaus 2019-09-23 19:54:47 +02:00
parent 5b1d2664af
commit bf538129c2

View file

@ -160,7 +160,8 @@ public final class SASLAuthentication {
private boolean authenticationSuccessful; private boolean authenticationSuccessful;
/** /**
* Either of type {@link SmackException} or {@link SASLErrorException} * Either of type {@link SmackSaslException},{@link SASLErrorException}, {@link NotConnectedException} or
* {@link InterruptedException}.
*/ */
private Exception saslException; private Exception saslException;
@ -227,6 +228,8 @@ public final class SASLAuthentication {
throw (SASLErrorException) saslException; throw (SASLErrorException) saslException;
} else if (saslException instanceof NotConnectedException) { } else if (saslException instanceof NotConnectedException) {
throw (NotConnectedException) saslException; throw (NotConnectedException) saslException;
} else if (saslException instanceof InterruptedException) {
throw (InterruptedException) saslException;
} else { } else {
throw new IllegalStateException("Unexpected exception type" , saslException); throw new IllegalStateException("Unexpected exception type" , saslException);
} }