Fix exception creation bug.

I wasn't using namespaces on the exception class names which lead the php
runtime to try an construct classes from the default namespace.