类 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 net.guerlab.cloud.web.core.exception.handler.GlobalExceptionHandler
异常统一处理配置.
作者:
guer
  • 字段概要

    从类继承的字段 net.guerlab.cloud.web.core.exception.handler.GlobalExceptionHandler

    builders, globalExceptionLogger, messageSource, stackTracesHandler
  • 构造器概要

    构造器
    构造器
    说明
    WebMvcGlobalExceptionHandler(org.springframework.context.MessageSource messageSource, net.guerlab.cloud.commons.exception.handler.StackTracesHandler stackTracesHandler, net.guerlab.cloud.web.core.exception.handler.GlobalExceptionLogger globalExceptionLogger, Collection<net.guerlab.cloud.commons.exception.handler.ResponseBuilder> builders, net.guerlab.cloud.web.core.properties.GlobalExceptionProperties globalExceptionProperties)
    初始化异常统一处理配置.
  • 方法概要

    修饰符和类型
    方法
    说明
    org.springframework.http.ResponseEntity<net.guerlab.cloud.core.result.Fail<?>>
    异常处理.

    从类继承的方法 net.guerlab.cloud.web.core.exception.handler.GlobalExceptionHandler

    build, getGlobalExceptionLogger

    从类继承的方法 java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 构造器详细资料

    • WebMvcGlobalExceptionHandler

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

    • exceptionHandler0

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