Throw correct ClassNotFoundException to debug classloader issues
This commit is contained in:
parent
aaa3c48b3c
commit
d16efbe47f
|
@ -241,7 +241,7 @@ public class ImmutableSettings implements Settings {
|
|||
try {
|
||||
return (Class<? extends T>) getClassLoader().loadClass(fullClassName);
|
||||
} catch (ClassNotFoundException e2) {
|
||||
throw new NoClassSettingsException("Failed to load class setting [" + setting + "] with value [" + get(setting) + "]", e);
|
||||
throw new NoClassSettingsException("Failed to load class setting [" + setting + "] with value [" + get(setting) + "]", e2);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue