Welcome to the Treehouse Community
Looking to learn something new?
Jonathan Toomey1,330 Points
Why is OutOfBoundsException not found within namespace even when I put the exception classes in the same file? Using VS
Hello, I've tried this course twice and both times I get to this video and I have an error saying that OutOfBoundsException is not recognized in the namespace. I've tried moving the class declarations into the same file but it still doesn't work.
I'm using Visual Studio for this as its what I use at work. The VS solution is to create a class for OutOfBoundsException but it obviously already exists
William Ruiz10,027 Points
Have you included
to the top of your Exceptions.cs file? When you right-click to "Add > Class" to create the Exceptions.cs is it auto-filling some other namespace, than that of your expected project's name?