上传异常处理

Raod 2 years ago
parent 42f85532de
commit 7c70df8a66

@ -122,7 +122,9 @@ public class GaeaFileServiceImpl implements GaeaFileService {
} }
// 将完整的http访问路径返回 // 将完整的http访问路径返回
return gaeaFile; return gaeaFile;
} catch (Exception e) { } catch (BusinessException e){
throw BusinessExceptionBuilder.build(e.getCode());
}catch (Exception e) {
log.error("file upload error", e); log.error("file upload error", e);
throw BusinessExceptionBuilder.build(ResponseCode.FILE_UPLOAD_ERROR); throw BusinessExceptionBuilder.build(ResponseCode.FILE_UPLOAD_ERROR);
} }

Loading…
Cancel
Save