In an Objective-C library I have a subclass of NSError that provides some library-specific convenience initializers:
@interface MyError : NSError { / … */ }
This error type is used throughout the library's public interface. Since this is an error type I would expect Swift to recognize it when using the library, e.g. e.g. `-(BOOL)doSomethingOrError:(MyError**)err` would be treated as `doSomething() throws`, but it is not.
Is there a way to make this work? Can I somehow force the "throws" interpretation in a bridging header, or somehow annotate my Objective-C library so that Swift fully recognizes the error type? I tried declaring `class MyError : Error {}` but Swift complains that it already knew that.