Add more explanations when raising an exception