That's a hard one to help out on without seeing the actual code. I'm assuming the following:
Your method has the appropriate throws statement.
Your method has a
test that may throw new Exception...
What exactly are you putting into your String? If you are passing it a variable of some sort, is it possible that the String is not getting initialized, and that is where the problem is, instead of your exception handling?
Jason