KOJObjcExceptionWrapper 0.1.1

KOJObjcExceptionWrapper 0.1.1

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Jul 2017

Maintained by Koji Murata.



  • By
  • Koji Murata

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.