NSUnhandledException implementation

jaminguy's Avatar

jaminguy

25 Dec, 2011 02:21 PM via web

I use a couple of different services for recording unhandled exceptions and I'd like to manually call [Airbrake logException:]. Do I need to register for NSUnhandledException myself before starting Airbrake or after?

  1. Support Staff 2 Posted by calebdavenport on 25 Dec, 2011 04:31 PM

    calebdavenport's Avatar

    Before you log any exceptions to our notifier you have to initialize it. If you are running the most recent version, there is a startNotifierWithAPIKey:environmentName:useSSL:delegate:installExceptionHandler:installSignalHandler: method that allows you to control which handlers are installed. Simply pass NO to both the signal and exception handlers and then you can log exceptions manually. Otherwise, you would have to register your own exception handler after initializing our notifier so that we don't override yours.

  2. calebdavenport closed this discussion on 25 Dec, 2011 04:31 PM.

Comments are currently closed for this discussion. You can start a new one.