It's important to generate a message for exceptions (instead of empty-string). Worst case, you can always call ex.getMessage().