class ApiErrorExtractor {

  public boolean fieldSizeTooLarge(IOException e) {
    ErrorInfo errorInfo = getErrorInfo(e);
    return errorInfo != null && FIELD_SIZE_TOO_LARGE_REASON.equals(errorInfo.getReason());
  }

}