class ApiErrorExtractor {

  @Nullable
  public String getDebugInfo(IOException e) {
    ErrorInfo errorInfo = getErrorInfo(e);
    return errorInfo != null ? (String) errorInfo.getUnknownKeys().get(DEBUG_INFO_FIELD) : null;
  }

}