程序包 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 final String
    Well-known name for the HandlerExceptionHandler object in the bean factory for this namespace.
    static final Object
    This value indicates that the handler did not return a value, or the result has been processed
  • 方法概要

    修饰符和类型
    方法
    说明
    find(cn.taketoday.context.ApplicationContext context)
     
    find(cn.taketoday.context.ApplicationContext context, boolean detectAllHandlerExceptionHandlers)
     
    handleException(RequestContext context, Throwable exception, Object handler)
    Handle exception
  • 字段详细资料

    • BEAN_NAME

      static final String 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

      static final Object 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 occurred
      handler - Current handler
      返回:
      a corresponding view result to write to, or null for default processing in the resolution chain
      抛出:
      Exception - error handle failed
    • find

      static HandlerExceptionHandler find(cn.taketoday.context.ApplicationContext context)
    • find

      static HandlerExceptionHandler find(cn.taketoday.context.ApplicationContext context, boolean detectAllHandlerExceptionHandlers)