1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-12-26 12:37:58 +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;
/**
* Either of type {@link SmackException} or {@link SASLErrorException}
* Either of type {@link SmackSaslException},{@link SASLErrorException}, {@link NotConnectedException} or
* {@link InterruptedException}.
*/
private Exception saslException;
@ -227,6 +228,8 @@ public final class SASLAuthentication {
throw (SASLErrorException) saslException;
} else if (saslException instanceof NotConnectedException) {
throw (NotConnectedException) saslException;
} else if (saslException instanceof InterruptedException) {
throw (InterruptedException) saslException;
} else {
throw new IllegalStateException("Unexpected exception type" , saslException);
}