Raise exception instances, not exception classes.

Raising raw exception classes works, but is old deprecated syntax, and
may bite us later.

Change-Id: I03f41da267ce5cbfc5ea98c531acc9a9b13e082a
Merge "Raise exception instances, not exception classes."
Merge remote-tracking branch 'm_src_repo/citrix-fixes' into build-temp