AssetManager: use right exception class if no loaders registered

experimental
shadowislord 10 years ago
parent 96502e9061
commit 6d7da0cc4e
  1. 4
      jme3-core/src/main/java/com/jme3/asset/ImplHandler.java

@ -195,8 +195,8 @@ public class ImplHandler {
// No need to synchronize() against map, its concurrent
ImplThreadLocal local = extensionToLoaderMap.get(key.getExtension());
if (local == null){
throw new IllegalStateException("No loader registered for type \"" +
key.getExtension() + "\"");
throw new AssetLoadException("No loader registered for type \"" +
key.getExtension() + "\"");
}
return (AssetLoader) local.get();

Loading…
Cancel
Save