Slick Forums

Discuss the Slick 2D Library
It is currently Sun May 19, 2013 9:12 pm

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Wed Aug 15, 2012 1:40 am 
Offline
Game Developer
User avatar

Joined: Wed Feb 17, 2010 12:24 am
Posts: 594
In TWLSlick.zip (state based game), I didn't have xpp3-1.1.4c.jar in my libs/path and TWL would just silently fail till initGUI() with "Could not initialize TWL GUI". Why doesn't it fail sooner than then or with a more descriptive exception? Shouldn't it throw an fatal exception if it can't parse the theme file?


Top
 Profile  
 
PostPosted: Wed Aug 15, 2012 5:37 pm 
Offline
Slick Zombie

Joined: Fri Jan 29, 2010 7:02 pm
Posts: 1171
The ClassNotFoundException is wrapped in a SlickException inside the initGUI method, you should see the cause of this in the stack trace. If you don't like that you can change the catch(Throwable) into a more fine grained catch.

_________________
TWL - The Themable Widget Library


Top
 Profile  
 
PostPosted: Wed Aug 15, 2012 6:07 pm 
Offline
Game Developer
User avatar

Joined: Wed Feb 17, 2010 12:24 am
Posts: 594
MatthiasM wrote:
The ClassNotFoundException is wrapped in a SlickException inside the initGUI method, you should see the cause of this in the stack trace. If you don't like that you can change the catch(Throwable) into a more fine grained catch.



ok, it was just a bit confusing though since it wasn't clear on what it was failing on. More newbies testing that example might have that same problem which was not fun to troubleshoot.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group