| | |
| | | package com.yuanchu.limslaboratory.handler; |
| | | |
| | | import com.yuanchu.limslaboratory.exception.ApplicationException; |
| | | import com.yuanchu.limslaboratory.exception.AuthException; |
| | | import com.yuanchu.limslaboratory.exception.MyFileException; |
| | | import com.yuanchu.limslaboratory.utils.MyUtil; |
| | |
| | | return Result.fail(Integer.valueOf(e.getCode()),e.getMsg()); |
| | | } |
| | | |
| | | /** |
| | | * 业务异常 |
| | | * @param e |
| | | * @return |
| | | */ |
| | | @ExceptionHandler({ApplicationException.class }) |
| | | public Result<?> applicationError(ApplicationException e){ |
| | | return Result.fail(e.getMsg()); |
| | | } |
| | | |
| | | } |