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

Carel Du Plessis
PLUS
Carel Du Plessis
Courses Plus Student 16,356 Points

Time out error will not go away!!!!!!!!!!!!!!!!!!!

I can't finish my code code challenge.

Because:

what do i do when I get a time out error every time on the second half of the code challenge.

I can't submit my code:

TooBigException.cs

namespace Treehouse.CodeChallenges
{
    class TooBigException : System.Exception {
       TooBigException (string message) : base(message){

       }
    }
}

1 Answer

Justin Horner
STAFF
Justin Horner
Treehouse Guest Teacher

Hello Carel,

I believe the issue is that you're missing an accessor modifier on the constructor. Try prefixing your TooBigException constructor with public so that it looks like this:

public TooBigException (string message) : base(message) {
...
}

I hope this helps.