Throw exception for undefined namespaces