Throw correct ClassNotFoundException to debug classloader issues

This commit is contained in:
Jeremy Jongsma 2013-02-08 16:58:43 -06:00 committed by Simon Willnauer
parent aaa3c48b3c
commit d16efbe47f
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}
}
}