Fixed Exceptions for namespaces

Changed Exception to \Exception