Fixes for mis-use of various exceptions

Changes to various the way various exceptions are raised. They are
all missing keyword args.

Fixes bug 1172220

Change-Id: I132d8a3b5b130b3a8e17fe49ba8800060325f811