|
|
@@ -246,8 +246,8 @@ public class PathScanner {
|
|
|
return classLoader.loadClass(className);
|
|
|
}
|
|
|
// 此处不能 catch Exception,否则抓不到 NoClassDefFoundError,因为它是 Error 的子类
|
|
|
- catch (Throwable e) {
|
|
|
- Log.getLog(PathScanner.class).debug(e.getMessage(), e);
|
|
|
+ catch (Throwable t) {
|
|
|
+ Log.getLog(PathScanner.class).debug(t.getMessage(), t);
|
|
|
|
|
|
/**
|
|
|
* 由于扫描是一种主动行为,所以 pom.xml 中的 provided 依赖会在此被 loadClass,
|