public class DefaultWebResponseExceptionTranslator extends Object implements WebResponseExceptionTranslator<OAuth2Exception>
OAuth2Exception
s. The output matches the OAuth 2.0
specification in terms of error response format and HTTP status code.Constructor and Description |
---|
DefaultWebResponseExceptionTranslator() |
Modifier and Type | Method and Description |
---|---|
void |
setThrowableAnalyzer(org.springframework.security.web.util.ThrowableAnalyzer throwableAnalyzer) |
org.springframework.http.ResponseEntity<OAuth2Exception> |
translate(Exception e) |
public DefaultWebResponseExceptionTranslator()
public org.springframework.http.ResponseEntity<OAuth2Exception> translate(Exception e) throws Exception
translate
in interface WebResponseExceptionTranslator<OAuth2Exception>
Exception
public void setThrowableAnalyzer(org.springframework.security.web.util.ThrowableAnalyzer throwableAnalyzer)
Copyright © 2019. All rights reserved.