Catch Objective-C exceptions by NSException subtype in a Swift closure/function.
Swift Objective-C
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
CwlCatchException.xcodeproj
Sources
Tests/CwlCatchExceptionTests
.gitignore
LICENSE.txt
Package.swift
README.md

README.md

CwlCatchException

A simple Swift wrapper around an Objective-C @try/@catch statement that selectively catches Objective-C exceptions by NSException subtype, rethrowing if any caught exception is not the expected subtype.

Look at CwlCatchExceptionTests.swift for usage and details.