Better error message when the cause of the exception is known.