Can I restrict the type that a function throws in Swift? : <p>When calling a function in Swift 3 that <code>throws</code>, you have to be exhaustive in catching all possible errors, which often means you have an unnecessary extra <code>catch {}</code> at the end to handle errors that won't happen.</p>

<p>Is it possible to say <code>throws MyErrorType</code> so that the compiler can know you have indeed been exhaustive when you handle all cases from that enumeration?</p>
