types of printing out the exception message