groovy-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Edinson E. PadrĂ³n Urdaneta <>
Subject Re: Is it possible to implement in the language an `else` block in exception handling?
Date Thu, 01 Oct 2015 15:36:04 GMT
Hi, Jochen.

The following is part of a previous email I send to this thread addressing
the same concern:

>what would happen if the code that throws the exception is part of a return
>sentence? What if the 'else code' that is after the code that throws the
>exception throws one of its own and it's captured by the catch block(s)? In
>the other hand, isn't more clear to have inside the try block only the code
>that should be 'tested for an exceptional situation'?


View raw message