Need help with JSErrorStackTrace?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

JaviSoto
126 Stars 5 Forks MIT License 34 Commits 0 Opened issues

Description

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

Services available

!
?

Need anything else?

Contributors list

# 17,118
Objecti...
carthag...
deep-li...
deeplin...
15 commits
# 105,539
Objecti...
Swift
sketch-...
Sketch
11 commits
# 9,874
autohot...
ahk
bitwise...
Nette
1 commit
# 508
program...
analysi...
2d-fram...
Sketch
1 commit

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 ([email protected])

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

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.