try {
   Integer a = new Integer("1234"); //no problem
   a = new Integer("this is not a number"); //NumberFormatException
} catch (Exception e) // I want to catch all exceptions
{
    e.printStackTrace(); //show the exception to console
}