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
1 changed files with 4 additions and 1 deletions

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