org.springframework.boot.web.servlet.error

Interface ErrorController

  • All Known Implementing Classes:
    AbstractErrorController, BasicErrorController
    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 ErrorController
    Marker interface used to indicate that a @Controller is used to render errors. Primarily used to know the error paths that will not need to be secured.
    Since:
    2.0.0
    Author:
    Phillip Webb
    • Method Detail

      • getErrorPath

        String getErrorPath()
        Returns the path of the error page.
        Returns:
        the error path