answered Feb 22 '13
You may also want to enclose your code in a try...catch block and print a more meaningful exception message by catching the exception.