You can manually report exceptions to the dashboard using this API. The method takes an exception as an argument.
CrashReporting.report(exception)
[IBGCrashReporting reportException:exception];
IBGNonFatalException exception = new IBGNonFatalException.Builder(new NullPointerException("Test Exception"))
.setUserAttributes(new HashMap<>())
.setFingerprint("My Custom Fingerprint")
.setLevel(IBGNonFatalException.Level.CRITICAL)
.build();
CrashReporting.report(exception);
val exception = IBGNonFatalException.Builder(NullPointerException("Test Exception"))
.setUserAttributes(mapOf("height" to "tall"))
.setFingerprint("My Custom Fingerprint")
.setLevel(IBGNonFatalException.Level.CRITICAL)
.build()
CrashReporting.report(exception)
try {
throw new SyntaxError();
} catch (err) {
if (err instanceof Error) {
CrashReporting.reportError(err);
}
}
CrashReporting.reportHandledCrash(error, stackTrace);