Bugfix: loader now catches all possible exception and throws IOException with a proper information abount unexpected error.

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10887 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
experimental
Kae..pl 11 years ago
parent ebc9b2f7b5
commit c5725e238b
  1. 2
      engine/src/blender/com/jme3/scene/plugins/blender/BlenderLoader.java
  2. 2
      engine/src/blender/com/jme3/scene/plugins/blender/BlenderModelLoader.java

@ -142,6 +142,8 @@ public class BlenderLoader implements AssetLoader {
return loadingResults; return loadingResults;
} catch (BlenderFileException e) { } catch (BlenderFileException e) {
throw new IOException(e.getLocalizedMessage(), e); throw new IOException(e.getLocalizedMessage(), e);
} catch (Exception e) {
throw new IOException("Unexpected importer exception occured: " + e.getLocalizedMessage(), e);
} finally { } finally {
this.clear(); this.clear();
} }

@ -96,6 +96,8 @@ public class BlenderModelLoader extends BlenderLoader {
return modelRoot; return modelRoot;
} catch (BlenderFileException e) { } catch (BlenderFileException e) {
throw new IOException(e.getLocalizedMessage(), e); throw new IOException(e.getLocalizedMessage(), e);
} catch (Exception e) {
throw new IOException("Unexpected importer exception occured: " + e.getLocalizedMessage(), e);
} finally { } finally {
this.clear(); this.clear();
} }

Loading…
Cancel
Save