Latest 0.1.1
Homepage https://github.com/malt03/KOJObjcExceptionWrapper
License MIT
Platforms ios 8.0
Authors

Version
Platform
License

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Usage

do {
  try KOJObjcExceptionWrapper.throwsBlock {
    // @throw NSException from Objective-C
  }
} catch let e as NSError {
  e.userInfo[KOJObjcExceptionWrapperCode]
  e.userInfo[KOJObjcExceptionWrapperDomain]
  e.userInfo[KOJObjcExceptionWrapperName]
  e.userInfo[KOJObjcExceptionWrapperReason]
  e.userInfo[KOJObjcExceptionWrapperCallStackReturnAddresses]
  e.userInfo[KOJObjcExceptionWrapperCallStackSymbols]
  e.userInfo[KOJObjcExceptionWrapperUserInfo]
}

Installation

KOJObjcExceptionWrapper is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod "KOJObjcExceptionWrapper"

Author

Koji Murata, [email protected]

License

KOJObjcExceptionWrapper is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "KOJObjcExceptionWrapper",
    "version": "0.1.1",
    "summary": "Objective-C exception wrapper for Swift.",
    "description": "You can catch NSException in Swift with this pod.",
    "homepage": "https://github.com/malt03/KOJObjcExceptionWrapper",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Koji Murata": "[email protected]"
    },
    "source": {
        "git": "https://github.com/malt03/KOJObjcExceptionWrapper.git",
        "tag": "0.1.1"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "KOJObjcExceptionWrapper/Classes/**/*"
}

Pin It on Pinterest

Share This