What is ExceptionCatcher?

There are many Cocoa APIs that can throw exceptions that cannot be caught in Swift (NSKeyedUnarchiver, NSTask, NSObject#value(forKey:), etc). This package wraps an Objective-C exception handler to make it possible to catch such exceptions.

The ability to catch exceptions should really be built into Swift. If you agree, duplicate this Feedback Assistant report.

Overview