mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-12-01 16:32:08 +01:00
SASL: Add missing InterruptedException to "else if" cascade
This commit is contained in:
parent
5b1d2664af
commit
bf538129c2
1 changed files with 4 additions and 1 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue