Category on NSError that stores the stack trace of the creation of the NSError object for later retr...
The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:
Category on NSError that stores the stack trace of the creation of the NSError object for later retrieval.
Just use the property on
NSErrorthat it's added via the category:
NSError *sampleError = [NSError errorWithDomain:NSCocoaErrorDomain code:1337 userInfo:nil];
NSLog(@"Error creation stack trace: %@", sampleError.js_stackTrace);
Just add this line to your
pod 'JSErrorStackTrace', '~> 1.1.0'
Simply add the files
NSError+JSErrorStackTrace.mto your project.
JSErrorStackTraceis available under the MIT license. See the LICENSE file for more info.