Talk:Exceptions/Catch an exception thrown in a nested call: Difference between revisions
Content added Content deleted
(What if you don't say what something throws in Java?) |
|||
Line 9: | Line 9: | ||
==Ada example and un-caught exception== |
==Ada example and un-caught exception== |
||
The Ada example catches both exceptions at some level rather than leaving one un- |
The Ada example catches both exceptions at some level rather than leaving one un-caught and explaining the consequences. Could someone make the change? --[[User:Paddy3118|Paddy3118]] 11:54, 22 March 2009 (UTC) |
||
: Fixed --[[User:Dmitry-kazakov|Dmitry-kazakov]] 15:43, 22 March 2009 (UTC) |
: Fixed --[[User:Dmitry-kazakov|Dmitry-kazakov]] 15:43, 22 March 2009 (UTC) |
||
==A question on Java== |
|||
If you changed <code>public static void foo() throws U1</code> to remove the reference to it throwing U1, would that always be a compile time error? --[[User:Paddy3118|Paddy3118]] 05:14, 1 May 2009 (UTC) |