View Single Post
  #5 (permalink)  
Old 01-26-2008, 09:20 AM
tim's Avatar
tim tim is offline
Senior Member
 
Join Date: Dec 2007
Location: South Africa
Posts: 334
tim is on a distinguished road
Looking for throwables
Hello Deon

If you do not know what exceptions or errors to catch then use this:
Code:
try{ int a = 1, b = 0; int c = a / b; } catch (Throwable e) { System.out.println(e.getClass().getName()); }
This will tell you what exception was caught.

I'm going to install my JDK now, so please, mind the bugs.
__________________
If your ship has not come in yet then build a lighthouse.
Reply With Quote