Interface ErrorPageRegistry

All Known Subinterfaces:
ConfigurableJettyWebServerFactory, ConfigurableReactiveWebServerFactory, ConfigurableServletWebServerFactory, ConfigurableTomcatWebServerFactory, ConfigurableWebServerFactory
All Known Implementing Classes:
AbstractConfigurableWebServerFactory, AbstractReactiveWebServerFactory, ErrorPageFilter, JettyReactiveWebServerFactory, JettyServletWebServerFactory, JettyWebServerFactory, NettyReactiveWebServerFactory, TomcatReactiveWebServerFactory, TomcatServletWebServerFactory, TomcatWebServerFactory
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 ErrorPageRegistry
Interface for a registry that holds ErrorPages.
Since:
4.0.0
Author:
Phillip Webb
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addErrorPages(ErrorPage... errorPages)
    Adds error pages that will be used when handling exceptions.
  • Method Details

    • addErrorPages

      void addErrorPages(ErrorPage... errorPages)
      Adds error pages that will be used when handling exceptions.
      Parameters:
      errorPages - the error pages