>> It’s almost unique in that regard; in general Cocoa APIs are only supposed >> to throw exceptions for programmer errors like assertion failures. > > Almost unique is right. The only other offender I can think of is > Distributed Objects, which is even less fun because any method call > (including property accesses) on any proxied object can throw language > exceptions.
The docs only touch on it, but `-[NSTask launch]` throws an Objective-C exception "if it fails to create a process", which is something which can be very difficult to prevent through ahead-of-time checks. -- Brent Royal-Gordon Architechies _______________________________________________ swift-users mailing list swift-users@swift.org https://lists.swift.org/mailman/listinfo/swift-users