Is there a better solution to forward a Swift error from one function to another?
In the moment, I\'m doing it like this:
enum Error:ErrorType{
You don't need to catch them they will be thrown automatically as you marked your function with throws
throws
func func1() throws { try func2() }
Yes: don't wrap it in a do ... catch block.
func func2() throws{ // proof something throw Error.Error1 } func func1()throws{ try func2() }