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
Dharmesh Nayee
1,090 PointsWhy do we need to raise an error? can we not just catch it as an exception?
Just a little confused as to why we need to raise an error.
I dont think i fully understand the difference between raising an error and an exception.
1 Answer
Steven Parker
243,266 PointsYou didn't post a link to the original page, but I'd bet that "error" and "exception" are being used to describe the same thing. And "raise" and "catch" work together, the first creates an event and the second responds to it.
Depending on where you are in the lesson, it's possible you're only working with part of the combination (perhaps just the "raise").