Skip to content
This repository has been archived by the owner on Nov 15, 2017. It is now read-only.

JaviSoto/JSErrorStackTrace

Repository files navigation

JSErrorStackTrace

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 (ios@javisoto.es)

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

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •