Logging Caught Exceptions

This page is now deprecated. For the latest version, please click here.

In addition to automatically reporting your app's crashes, Crashlytics for Android lets you log caught exceptions in your app's catch blocks! To use this feature, simply add a call to Crashlytics.logException(Exception) to your catch block:

try {
  myMethodThatThrows();
} catch (Exception e) {
  Crashlytics.logException(e);
  // handle your exception here! 
}

All logged exceptions will appear as "non-fatal" issues in the Crashlytics dashboard. Your issue summary will contain all the state information you are use to getting from crashes along with breakdowns by Android version and hardware device. 

Crashlytics processes exceptions on a dedicated background thread, so the performance impact to your app is minimal.

To reduce your users' network traffic, Crashlytics batches logged exceptions together and sends them the next time the app launches. If you don't see logged exceptions in your Crashlytics web dashboard, try restarting your app!

Feedback and Knowledge Base