Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

C# C# Objects Inheritance Custom Exceptions

how do you do this. Exceptions are hard. Create a new exception type with no constructor named TooBigException.

thanks.

TooBigException.cs
namespace Treehouse.CodeChallenges : TooBigException
{

   {
   }


}

2 Answers

Ben Reynolds
Ben Reynolds
35,170 Points

One hint to get the ball rolling, you'll need to create a class which inherits from one of the existing .NET classes. Give it a shot and if it still gives you errors, share your code and we can help further. This video should have the answers you need.

Steven Parker
Steven Parker
231,198 Points

When you're stuck but don't have a specific question, you might start by looking at some of the other forum questions that have been asked about this same challenge.