posted 19 years ago
Hi
What you are throwing the the superclass of all exception, i,e it includes both checked exceptions and unchecked exceptions. So the compiler doesn't complain about it. When you are trying to throw a IOException it is a checked exception, it looks for i/o code, once it finds it unavailable at compile time, it starts complaining. You could try with RunTime exception, instead of Throwable it may not complain( I haven't tried it, when i wrote this, let me try and come back to you ).
Regards
Shivakanth