Add missing throws for exception

It is not enough to create an exception object, you need to throw
it as well.
2 files changed