org.springframework.security.web.util.ThrowableAnalyzer Java Examples

The following examples show how to use org.springframework.security.web.util.ThrowableAnalyzer. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: AjaxTimeoutRedirectFilter.java    From AIDR with GNU Affero General Public License v3.0 5 votes vote down vote up
/**
 * @see org.springframework.security.web.util.ThrowableAnalyzer#initExtractorMap()
 */
protected void initExtractorMap() {
    super.initExtractorMap();

    registerExtractor(ServletException.class, new ThrowableCauseExtractor() {
        public Throwable extractCause(Throwable throwable) {
            ThrowableAnalyzer.verifyThrowableHierarchy(throwable, ServletException.class);
            return ((ServletException) throwable).getRootCause();
        }
    });
}
 
Example #2
Source File: DefaultWebResponseExceptionTranslator.java    From spring-cloud-shop with MIT License 4 votes vote down vote up
public void setThrowableAnalyzer(ThrowableAnalyzer throwableAnalyzer) {
    this.throwableAnalyzer = throwableAnalyzer;
}
 
Example #3
Source File: BootOAuth2WebResponseExceptionTranslator.java    From oauth-boot with MIT License 4 votes vote down vote up
public void setThrowableAnalyzer(ThrowableAnalyzer throwableAnalyzer) {
    this.throwableAnalyzer = throwableAnalyzer;
}