程序包 cn.taketoday.web
接口 HandlerExceptionHandler
- 所有已知实现类:
AbstractActionMappingMethodExceptionHandler,AbstractHandlerExceptionHandler,CompositeHandlerExceptionHandler,ExceptionHandlerAnnotationExceptionHandler,ResponseStatusExceptionHandler,SimpleActionMappingMethodExceptionHandler,SimpleHandlerExceptionHandler,SimpleMappingExceptionHandler
public interface HandlerExceptionHandler
Handle Exception from handler
- 从以下版本开始:
- 2020-03-29 20:52
- 作者:
- TODAY
-
字段概要
字段 -
方法概要
修饰符和类型方法说明static HandlerExceptionHandlerfind(cn.taketoday.context.ApplicationContext context) static HandlerExceptionHandlerfind(cn.taketoday.context.ApplicationContext context, boolean detectAllHandlerExceptionHandlers) handleException(RequestContext context, Throwable exception, Object handler) Handle exception
-
字段详细资料
-
BEAN_NAME
Well-known name for the HandlerExceptionHandler object in the bean factory for this namespace. Only used when "detectAllHandlerExceptionHandlers" is turned off. -
NONE_RETURN_VALUE
This value indicates that the handler did not return a value, or the result has been processed
-
-
方法详细资料
-
handleException
@Nullable Object handleException(RequestContext context, Throwable exception, @Nullable Object handler) throws Exception Handle exception- 参数:
exception- The exception occurredhandler- Current handler- 返回:
- a corresponding view result to write to,
or
nullfor default processing in the resolution chain - 抛出:
Exception- error handle failed
-
find
-
find
static HandlerExceptionHandler find(cn.taketoday.context.ApplicationContext context, boolean detectAllHandlerExceptionHandlers)
-