| | |
| | | import com.gkhy.fourierSpecialGasMonitor.commons.exception.BusinessException; |
| | | import com.gkhy.fourierSpecialGasMonitor.commons.exception.DataReceiveException; |
| | | import com.gkhy.fourierSpecialGasMonitor.commons.exception.ExceptionInfo; |
| | | import com.gkhy.fourierSpecialGasMonitor.commons.exception.RepeatedClickException; |
| | | import org.slf4j.Logger; |
| | | import org.slf4j.LoggerFactory; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | return result; |
| | | } |
| | | |
| | | /** |
| | | * 重复点击异常 |
| | | */ |
| | | @ResponseBody |
| | | @ExceptionHandler(value = RepeatedClickException.class) |
| | | public Result repeatedClickExceptionHandler(RepeatedClickException e) throws JsonProcessingException { |
| | | Result result = new Result(); |
| | | result.setSuccess(); |
| | | result.setMsg(e.getMessage()); |
| | | return result; |
| | | } |
| | | |
| | | /** |
| | | * @Description: AuthenticationException |