Welcome, Guest. Please login or register.

Login with username, password and session length

 
Advanced search

11991 Posts in 1587 Topics- by 3508 Members - Latest Member: NevilleKemp

26. May 2012, 05:19:13 pm
Xith3D CommunityGeneral CategorySupport (Moderator: Marvin Fröhlich)[BUG] ModelLoader.LoadModel() throws wrong exception type
Pages: [1]
Print
Author Topic: [BUG] ModelLoader.LoadModel() throws wrong exception type  (Read 227 times)
ChrisE
Becoming dependent
**
Offline Offline

Posts: 104


View Profile
« on: 03. May 2011, 10:57:49 pm »

Marvin,

If you call ModelLoader.loadModel() with an unsupported file type, it throws an Error(), though it claims that it will throw an IncorrectFormatException.

Would it be desirable behavior to throw an IncorrectFormatException if asked to load an unrecognized format?

If so, you just need to modify extractModelType() to throw that instead of Error.

Thanks!

-Chris
Logged
Marvin Fröhlich
Xith Lord
Administrator
Guru
*****
Offline Offline

Posts: 4381


May the 4th, be with you...


View Profile
« Reply #1 on: 04. May 2011, 08:35:29 am »

I think, that's a good idea. I will check it this evening.
Logged
Marvin Fröhlich
Xith Lord
Administrator
Guru
*****
Offline Offline

Posts: 4381


May the 4th, be with you...


View Profile
« Reply #2 on: 04. May 2011, 05:30:27 pm »

I have fixed that and commited to SVN.
Logged
Pages: [1]
Print
Jump to:  

Theme orange-lt created by panic