Caught Exceptions

In addition to automatically reporting your app’s crashes, Crashlytics lets you log custom exceptions in C# using the following methods:

Crashlytics.RecordCustomException(string name, string reason, StackTrace stackTrace);
Crashlytics.RecordCustomException(string name, string reason, string stackTraceString);

Custom exceptions can be included in your app’s try/catch blocks.

try {
  myMethodThatThrows();
} catch (Exception e) {
  Crashlytics.RecordCustomException("my exception", "thrown exception", e);
  // handle your exception here!
}

All custom exceptions will appear as “non-fatal” issues in your iOS and Android Fabric dashboards. Your issue summary will contain all of the state information included in standard crashes along with hardware and device breakdowns.