posted 21 years ago
I came across this question:
The answer is there is a compile error because BlueException is not thrown anywhere in the try block.
However I answered this incorrectly, because one time I created try/catch blocks around code which did not throw an exception, like this:
I thought maybe I was catching potential RuntimeException with this, but I tried to catch a subclass of Exception that is not a subclass of RuntimeException and I get a compiler error.
Could someone explain this? Thanks.
[ May 30, 2003: Message edited by: Brian J. ]
[ May 30, 2003: Message edited by: Brian J. ]