Catch Exception instead of Throwable
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1618553 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
c694717040
commit
8c85040d3e
|
@ -175,7 +175,7 @@ public class WindowsNegotiateScheme extends AuthSchemeBase {
|
|||
|
||||
response = getToken(null, null,
|
||||
this.servicePrincipalName != null ? this.servicePrincipalName : username);
|
||||
} catch (Throwable t) {
|
||||
} catch (Exception t) {
|
||||
failAuthCleanup();
|
||||
throw new AuthenticationException("Authentication Failed", t);
|
||||
}
|
||||
|
@ -189,7 +189,7 @@ public class WindowsNegotiateScheme extends AuthSchemeBase {
|
|||
Sspi.SECBUFFER_TOKEN, continueTokenBytes);
|
||||
response = getToken(this.sppicontext, continueTokenBuffer,
|
||||
this.servicePrincipalName != null ? this.servicePrincipalName : "localhost");
|
||||
} catch (Throwable t) {
|
||||
} catch (Exception t) {
|
||||
failAuthCleanup();
|
||||
throw new AuthenticationException("Authentication Failed", t);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue