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# Basics (Retired) Perfect Wrap Up

exception handling

It's not letting me pass the exception handling problem

Jennifer Nordell
seal-mask
.a{fill-rule:evenodd;}techdegree
Jennifer Nordell
Treehouse Teacher

Hi there! A link to the challenge would be helpful for us. I'd like to point out also that a good number of us who answer questions regularly on Treehouse prefer it when we can see the code that you've tried thus far. In my opinion, this results in a better overall learning experience for you. We can look at your code and more accurately say what you are not understanding and explain in more detail why this works the way it does! :sparkles:

1 Answer

Steven Parker
Steven Parker
231,269 Points

:point_right: Here's a few generic hints.

I agree with Jennifer, you should give it your best "good faith" attempt and then post your code if you have problems or questions (with a link to the challenge). But the final challenge in this course has been the subject of many previous questions, so I can give you some generic hints for tasks 2 and 3:


People often over-think this one and get too creative, and their answer is rejected for a variety of reasons (some which don't seem to make any sense).

Here are the secret "rules" you must follow for success on this one:

  • Your program must ask for and accept input ONE TIME ONLY
  • If the input validates, your program will perform exactly as in Task 1
  • If the input does not validate, it will print the error message and exit
  • Validation must be done by exception catching. There are other perfectly good methods that can be used for validation, but they will not pass this challenge