reportException static method

void reportException(
  1. BuglyException exception
)

对外接口,上报异常

Implementation

static void reportException(BuglyException exception) {
  if (options.onErrorCallback != null) {
    options.onErrorCallback!(exception);
  }

  if (_isDelayInit == true && _isFinalInited == false) {
    logger(APMLogLevel.error, 'rmonitor _runDelayInitTask not final inited, ignore exception');
    return;
  }

  if (_bugly_isEnable) {
    BuglyReporter.instance.reportException(exception);
  }
}