This is similar to Change unhandled exception auto-generated catch code in Eclipse?
which is about changing the code that Eclipse generates for the function 'sorround with try/catch block'.
In my case, I'd like to change the variable name that is used for the exception in such code (the one referred by ${exception_var} in the template). I don't like 'e', cause sometimes it clashes with already defined variables. ex
and try ( ex ) {...}
would be better.
In Eclipse Luna, go to Window > Preferences > Java > Code Style > Exception variable name in catch block.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With