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 Error

You can manually report errors to the dashboard using this API. The method takes an error as an argument.

let error = NSError(domain: "domain", code: 500, userInfo: nil)
CrashReporting.reportError(error)
NSError *error = [[NSError alloc] initWithDomain:@"domain" code:500 userInfo:nil];
[IBGCrashReporting reportError:error];
CrashReporting.reportException(new NullPointerException("Test issue"));
try {
      throw new SyntaxError();
    } catch (error) {
      alert(error.name);
      Instabug.reportJSException(error);
    }