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
This commit is contained in:
Kae..pl 2013-11-10 18:00:59 +00:00
parent ebc9b2f7b5
commit c5725e238b
2 changed files with 4 additions and 0 deletions

View File

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

View File

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