类 WebMvcGlobalExceptionHandler

java.lang.Object
net.guerlab.cloud.web.core.exception.handler.GlobalExceptionHandler
net.guerlab.cloud.web.webmvc.exception.handler.WebMvcGlobalExceptionHandler
直接已知子类:
WebMvcGlobalExceptionHandlerAutoConfigure.DefaultWebMvcGlobalExceptionHandler

public class WebMvcGlobalExceptionHandler extends GlobalExceptionHandler
异常统一处理配置.
作者:
guer
  • 构造器详细资料

    • WebMvcGlobalExceptionHandler

      public WebMvcGlobalExceptionHandler(org.springframework.context.MessageSource messageSource, net.guerlab.cloud.commons.exception.handler.StackTracesHandler stackTracesHandler, GlobalExceptionLogger globalExceptionLogger, Collection<net.guerlab.cloud.commons.exception.handler.ResponseBuilder> builders, GlobalExceptionProperties globalExceptionProperties)
      初始化异常统一处理配置.
      参数:
      messageSource - messageSource
      stackTracesHandler - 堆栈处理
      globalExceptionLogger - 全局异常处理日志记录器
      builders - 异常信息构建者列表
      globalExceptionProperties - 全局异常处理配置
  • 方法详细资料

    • exceptionHandler

      @ExceptionHandler(java.lang.Exception.class) public org.springframework.http.ResponseEntity<net.guerlab.cloud.core.result.Fail<?>> exceptionHandler(Exception e)
      异常处理.
      参数:
      e - 异常
      返回:
      响应数据