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:
		
							parent
							
								
									ebc9b2f7b5
								
							
						
					
					
						commit
						c5725e238b
					
				| @ -142,6 +142,8 @@ public class BlenderLoader implements AssetLoader { | ||||
|             return loadingResults; | ||||
|         } catch (BlenderFileException e) { | ||||
|             throw new IOException(e.getLocalizedMessage(), e); | ||||
|         } catch (Exception e) { | ||||
|             throw new IOException("Unexpected importer exception occured: " + e.getLocalizedMessage(), e); | ||||
|         } finally { | ||||
|             this.clear(); | ||||
|         } | ||||
|  | ||||
| @ -96,6 +96,8 @@ public class BlenderModelLoader extends BlenderLoader { | ||||
|             return modelRoot; | ||||
|         } catch (BlenderFileException e) { | ||||
|             throw new IOException(e.getLocalizedMessage(), e); | ||||
|         } catch (Exception e) { | ||||
|             throw new IOException("Unexpected importer exception occured: " + e.getLocalizedMessage(), e); | ||||
|         } finally { | ||||
|             this.clear(); | ||||
|         } | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user