I'm not sure what you mean - the code you posted won't even compile (Exceptions must be caught or thrown).



If you wish to log exceptions, you might consider looking into a logging API such as...