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
  • Method Summary

    Modifier and Type
    Method
    Description
    org.springframework.web.servlet.ModelAndView
    resolveErrorView(jakarta.servlet.http.HttpServletRequest request, org.springframework.http.HttpStatus status, Map<String,Object> model)
    Resolve an error view for the specified details.
  • Method Details

    • resolveErrorView

      org.springframework.web.servlet.ModelAndView resolveErrorView(jakarta.servlet.http.HttpServletRequest request, org.springframework.http.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