类 ExceptionController


  • @RestControllerAdvice
    @CrossOrigin("*")
    public class ExceptionController
    extends Object
    • 字段概要

      字段 
      修饰符和类型 字段 说明
      protected org.apache.commons.logging.Log logger  
    • 方法概要

      所有方法 实例方法 具体方法 
      修饰符和类型 方法 说明
      reactor.core.publisher.Mono<cn.dustlight.datacenter.core.ErrorDetails> onAccessDeniedException​(org.springframework.security.access.AccessDeniedException e, org.springframework.web.server.ServerWebExchange exchange)  
      reactor.core.publisher.Mono<cn.dustlight.datacenter.core.ErrorDetails> onAuthenticationException​(org.springframework.security.core.AuthenticationException e, org.springframework.web.server.ServerWebExchange exchange)  
      reactor.core.publisher.Mono<cn.dustlight.datacenter.core.ErrorDetails> onErrorException​(cn.dustlight.datacenter.core.DatacenterException e, org.springframework.web.server.ServerWebExchange exchange)  
      reactor.core.publisher.Mono<cn.dustlight.datacenter.core.ErrorDetails> onException​(Throwable e, org.springframework.web.server.ServerWebExchange exchange)  
    • 字段详细资料

      • logger

        protected final org.apache.commons.logging.Log logger
    • 构造器详细资料

      • ExceptionController

        public ExceptionController()
    • 方法详细资料

      • onException

        @ExceptionHandler(java.lang.Throwable.class)
        public reactor.core.publisher.Mono<cn.dustlight.datacenter.core.ErrorDetails> onException​(Throwable e,
                                                                                                  org.springframework.web.server.ServerWebExchange exchange)
      • onErrorException

        @ExceptionHandler(cn.dustlight.datacenter.core.DatacenterException.class)
        public reactor.core.publisher.Mono<cn.dustlight.datacenter.core.ErrorDetails> onErrorException​(cn.dustlight.datacenter.core.DatacenterException e,
                                                                                                       org.springframework.web.server.ServerWebExchange exchange)
      • onAuthenticationException

        @ExceptionHandler(org.springframework.security.core.AuthenticationException.class)
        public reactor.core.publisher.Mono<cn.dustlight.datacenter.core.ErrorDetails> onAuthenticationException​(org.springframework.security.core.AuthenticationException e,
                                                                                                                org.springframework.web.server.ServerWebExchange exchange)
      • onAccessDeniedException

        @ExceptionHandler(org.springframework.security.access.AccessDeniedException.class)
        public reactor.core.publisher.Mono<cn.dustlight.datacenter.core.ErrorDetails> onAccessDeniedException​(org.springframework.security.access.AccessDeniedException e,
                                                                                                              org.springframework.web.server.ServerWebExchange exchange)