Bug 17325 - Specify which exception to throw.
Reword the text where exceptions are thrown.

The goal was to make it consistent and more RFC2119-y.