|
@@ -6,6 +6,7 @@ import org.apache.commons.lang3.StringUtils;
|
|
import org.assertj.core.util.Arrays;
|
|
import org.assertj.core.util.Arrays;
|
|
|
|
|
|
import cn.com.qmth.examcloud.commons.exception.ExamCloudRuntimeException;
|
|
import cn.com.qmth.examcloud.commons.exception.ExamCloudRuntimeException;
|
|
|
|
+import cn.com.qmth.examcloud.commons.exception.StatusException;
|
|
import cn.com.qmth.examcloud.commons.helpers.ObjectHolder;
|
|
import cn.com.qmth.examcloud.commons.helpers.ObjectHolder;
|
|
import cn.com.qmth.examcloud.web.redis.RedisClient;
|
|
import cn.com.qmth.examcloud.web.redis.RedisClient;
|
|
import cn.com.qmth.examcloud.web.support.SpringContextHolder;
|
|
import cn.com.qmth.examcloud.web.support.SpringContextHolder;
|
|
@@ -74,6 +75,8 @@ public abstract class FullObjectRedisCache<T> implements FullObjectCache<T> {
|
|
T t = null;
|
|
T t = null;
|
|
try {
|
|
try {
|
|
t = loadFromResource(keys);
|
|
t = loadFromResource(keys);
|
|
|
|
+ } catch (StatusException e) {
|
|
|
|
+ throw e;
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
throw new ExamCloudRuntimeException("fail to load data. key=" + key, e);
|
|
throw new ExamCloudRuntimeException("fail to load data. key=" + key, e);
|
|
}
|
|
}
|