HomeDocumentationAPI Reference
Getting StartedAPI ReferenceBug ReportingCrash ReportingAPMHelp Center
These docs are for v8.1. Click to read the latest docs for v12.0.0.

Report Exception

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];
CrashReporting.reportException(new NullPointerException("Test issue"));
try {
      throw new SyntaxError();
    } catch (error) {
      alert(error.name);
      CrashReporting.reportJSException(error);
    }