Revert "Correct exception raising message."

This reverts commit db1cca3141d859b140bf93f46cc7217688f7ef25.