public class CustomWebResponseExceptionTranslator
extends java.lang.Object
implements org.springframework.security.oauth2.provider.error.WebResponseExceptionTranslator<org.springframework.security.oauth2.common.exceptions.OAuth2Exception>
| 限定符和类型 | 字段和说明 |
|---|---|
org.springframework.context.MessageSource |
messageSource |
| 构造器和说明 |
|---|
CustomWebResponseExceptionTranslator(java.lang.Boolean okEnable,
org.springframework.context.MessageSource messageSource) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
setThrowableAnalyzer(org.springframework.security.web.util.ThrowableAnalyzer throwableAnalyzer) |
org.springframework.http.ResponseEntity<org.springframework.security.oauth2.common.exceptions.OAuth2Exception> |
translate(java.lang.Exception e) |
public CustomWebResponseExceptionTranslator(java.lang.Boolean okEnable,
org.springframework.context.MessageSource messageSource)
public org.springframework.http.ResponseEntity<org.springframework.security.oauth2.common.exceptions.OAuth2Exception> translate(java.lang.Exception e)
throws java.lang.Exception
translate 在接口中 org.springframework.security.oauth2.provider.error.WebResponseExceptionTranslator<org.springframework.security.oauth2.common.exceptions.OAuth2Exception>java.lang.Exceptionpublic void setThrowableAnalyzer(org.springframework.security.web.util.ThrowableAnalyzer throwableAnalyzer)