Fix Exception class usage in namespaced class files

2 jobs for 75-use-namespaces-and-new-class-names-in-the-tasks in 2 minutes and 15 seconds