AssetManager: use right exception class if no loaders registered
This commit is contained in:
parent
96502e9061
commit
6d7da0cc4e
@ -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…
x
Reference in New Issue
Block a user