TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Dec 2014 |
Maintained by Javier Soto.
Category on NSError that stores the stack trace of the creation of the NSError object for later retrieval.
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);
Just add this line to your Podfile
:
pod 'JSErrorStackTrace', '~> 1.1.0'
Simply add the files NSError+JSErrorStackTrace.h
and NSError+JSErrorStackTrace.m
to your project.
Javier Soto ([email protected])
JSErrorStackTrace
is available under the MIT license. See the LICENSE file for more info.