Foundation woes

The enum example is from GzipSwift, but it is also what Apple suggests in the Error handling chapter of the Swift documentation.