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 trialRob Fleming
6,634 PointsI don't know what to put here
i have tried everything i could think of and i have re-watched the videos and have had no luck.
2 Answers
luiscalvillo
10,516 Pointstry "rethrows"
Rob Fleming
6,634 Pointsthank you i just couldn't think of what i was doing wrong
Casandra Hayward
7,523 PointsHave you tried rethrows? See "Rethrowing Functions and Methods" in the Declarations section of the Language Reference section in "The Swift Programming Language(Swift 3.0.1).
Rob Fleming
6,634 PointsRob Fleming
6,634 Pointsthis is the question by the way
The ------------- keyword indicates to the compiler that the outer function is a throwing function only if the closure passed in throws an error that is propagated to the current scope.