@ -19,19 +19,23 @@ package org.springframework.boot.web.servlet.error;
import org.springframework.stereotype.Controller ;
import org.springframework.stereotype.Controller ;
/ * *
/ * *
* Marker interface used to i ndicate that a { @link Controller @Controller } is used to
* Marker interface used to i dentify a { @link Controller @Controller } that should be used
* render errors . Primarily used to know the error paths that will not need to be secured .
* to render errors .
*
*
* @author Phillip Webb
* @author Phillip Webb
* @author Scott Frederick
* @since 2.0 .0
* @since 2.0 .0
* /
* /
@FunctionalInterface
@FunctionalInterface
public interface ErrorController {
public interface ErrorController {
/ * *
/ * *
* Returns the path of the error page .
* The return value from this method is not used ; the property ` server . error . path `
* must be set to override the default error page path .
* @return the error path
* @return the error path
* @deprecated since 2.3 .0 in favor of setting the property ` server . error . path `
* /
* /
@Deprecated
String getErrorPath ( ) ;
String getErrorPath ( ) ;
}
}