cancelWikiInfo static method

void cancelWikiInfo(
  1. EventHandler operationHandler
)

Cancel a Wikipedia request for any reason.

Parameters

  • IN operationHandler EventHandler to cancel.

Throws

  • An exception if it fails.

Implementation

static void cancelWikiInfo(EventHandler operationHandler) {
  if (operationHandler is! ExternalInfoHandler) {
    ApiErrorServiceImpl.apiErrorAsInt = -1;
    return;
  }

  operationHandler.cancelWikiInfo();
}