code: public void checkErrors(JsonNode root) throws MediaWikiApiErrorException {
  		if (root.has("error")) {
  			JsonNode errorNode = root.path("error");
  			MediaWikiApiErrorHandler.throwMediaWikiApiErrorException(errorNode
  					.path("code").asText("UNKNOWN"), errorNode.path("info")
  					.asText("No details provided"));
  		}
  	}
docs: @deprecated Use ApiConnection.sendJsonRequest that executes this method
  
  Checks if an API response contains an error and throws a suitable
  exception in this case.
  
  @param root
  root node of the JSON result
  @throws MediaWikiApiErrorException