I know this is not the way to do it, and it isn\'t clean at all. I just wonder if it\'s possible.
If I have a class with a bunch of methods
public class
No, there isn't. try/catch blocks can only occur in methods. You could use some sort of AOP framework however to automatically generate those blocks. postcrap is a pretty lightweight AOP component.
try
catch