mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-11-25 21:42:07 +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;
|
||||
|
||||
/**
|
||||
* 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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue