org.springframework.boot.autoconfigure.web.servlet.error

Interface ErrorViewResolver

  • All Known Implementing Classes:
    DefaultErrorViewResolver
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.


    @FunctionalInterface
    public interface ErrorViewResolver
    Interface that can be implemented by beans that resolve error views.
    Since:
    1.4.0
    Author:
    Phillip Webb
    • Method Detail

      • resolveErrorView

        ModelAndView resolveErrorView(HttpServletRequest request,
                                      HttpStatus status,
                                      Map<String,Object> model)
        Resolve an error view for the specified details.
        Parameters:
        request - the source request
        status - the http status of the error
        model - the suggested model to be used with the view
        Returns:
        a resolved ModelAndView or null