Display the exception type when not expecting an exception to be thrown.