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:
Oleg Kalnichevski 2014-08-18 07:39:26 +00:00
parent c694717040
commit 8c85040d3e
1 changed files with 2 additions and 2 deletions

View File

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