Print type of exception encountered