Namespacing issue with the exception class