| | |
| | | import com.gkhy.safePlatform.commons.exception.BusinessException; |
| | | import com.gkhy.safePlatform.commons.vo.ResultVO; |
| | | import com.gkhy.safePlatform.emergency.excepiton.EmergencyException; |
| | | import com.gkhy.safePlatform.incidentManage.exception.AccidentException; |
| | | import org.slf4j.Logger; |
| | | import org.slf4j.LoggerFactory; |
| | | import org.springframework.security.access.AccessDeniedException; |
| | |
| | | |
| | | private final Logger logger = LoggerFactory.getLogger(this.getClass()); |
| | | |
| | | |
| | | /** |
| | | * 事故管理自定义异常 |
| | | */ |
| | | @ResponseBody |
| | | @ExceptionHandler(value = AccidentException.class) |
| | | public ResultVO AHandler(AccidentException e) { |
| | | logger.warn(e.getMessage()); |
| | | return new ResultVO(e.getCode(),e.getMessage()); |
| | | } |
| | | |
| | | /** |
| | | * 应急预案自定义异常 |
| | | */ |