Latest 1.1.0
Homepage https://github.com/JaviSoto/JSErrorStackTrace
License MIT
Platforms ios 4.0, osx 10.6
Authors

Category on NSError that stores the stack trace of the creation of the NSError object for later retrieval.

Usage

Just use the property on NSError that it’s added via the category:

#import "NSError+JSErrorStackTrace.h"

NSError *sampleError = [NSError errorWithDomain:NSCocoaErrorDomain code:1337 userInfo:nil];

NSLog(@"Error creation stack trace: %@", sampleError.js_stackTrace);

Installation

Just add this line to your Podfile:

pod 'JSErrorStackTrace', '~> 1.1.0'
  • Manually:

Simply add the files NSError+JSErrorStackTrace.h and NSError+JSErrorStackTrace.m to your project.

Compatibility

  • Works with ARC and non ARC projects.
  • Compatible with any version of iOS and Mac OSX.

License

Javier Soto ([email protected])

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

Latest podspec

{
    "name": "JSErrorStackTrace",
    "version": "1.1.0",
    "summary": "Category on NSError that stores the stack trace of the creation of the NSError object for later retrieval.",
    "homepage": "https://github.com/JaviSoto/JSErrorStackTrace",
    "license": "MIT",
    "authors": {
        "Javier Soto": "[email protected]"
    },
    "source": {
        "git": "https://github.com/JaviSoto/JSErrorStackTrace.git",
        "tag": "1.1.0"
    },
    "platforms": {
        "ios": "4.0",
        "osx": "10.6"
    },
    "source_files": [
        "NSError+JSErrorStackTrace.m",
        "NSError+JSErrorStackTrace.h"
    ],
    "requires_arc": false
}

Pin It on Pinterest

Share This