| | |
| | | package com.gkhy.exam.framework.exception; |
| | | |
| | | import com.gkhy.exam.common.api.CommonResult; |
| | | import com.gkhy.exam.common.api.ResultCode; |
| | | import com.gkhy.exam.common.exception.ApiException; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.commons.lang3.StringUtils; |
| | |
| | | public CommonResult handleAccessDeniedException(RuntimeException ex, HttpServletRequest request) |
| | | { |
| | | writeExceptionLogFile(ex); |
| | | return CommonResult.failed("权限不足,无法访问系统资源"); |
| | | return CommonResult.failed(ResultCode.FORBIDDEN,"权限不足,无法访问系统资源"); |
| | | } |
| | | |
| | | /** |