Tabnine Logo
BulkWriteError.getDetails
Code IndexAdd Tabnine to your IDE (free)

How to use
getDetails
method
in
com.mongodb.bulk.BulkWriteError

Best Java code snippets using com.mongodb.bulk.BulkWriteError.getDetails (Showing top 8 results out of 315)

origin: org.mongodb/mongo-java-driver

  @Override
  public String toString() {
    return "BulkWriteError{"
        + "index=" + index
        + ", code=" + getCode()
        + ", message='" + getMessage() + '\''
        + ", details=" + getDetails()
        + '}';
  }
}
origin: org.mongodb/mongo-java-driver

static List<BulkWriteError> translateWriteErrors(final List<com.mongodb.bulk.BulkWriteError> errors) {
  List<BulkWriteError> retVal = new ArrayList<BulkWriteError>(errors.size());
  for (com.mongodb.bulk.BulkWriteError cur : errors) {
    retVal.add(new BulkWriteError(cur.getCode(), cur.getMessage(), DBObjects.toDBObject(cur.getDetails()), cur.getIndex()));
  }
  return retVal;
}
origin: org.mongodb/mongo-java-driver

private void mergeWriteErrors(final List<BulkWriteError> newWriteErrors, final IndexMap indexMap) {
  for (BulkWriteError cur : newWriteErrors) {
    this.writeErrors.add(new BulkWriteError(cur.getCode(), cur.getMessage(), cur.getDetails(), indexMap.map(cur.getIndex())
    ));
  }
}
origin: org.mongodb/mongo-java-driver

private BsonDocument manufactureGetLastErrorResponse(final MongoBulkWriteException e) {
  BsonDocument response = new BsonDocument();
  addBulkWriteResultToResponse(e.getWriteResult(), response);
  if (e.getWriteConcernError() != null) {
    response.putAll(e.getWriteConcernError().getDetails());
  }
  if (getLastError(e) != null) {
    response.put("err", new BsonString(getLastError(e).getMessage()));
    response.put("code", new BsonInt32(getLastError(e).getCode()));
    response.putAll(getLastError(e).getDetails());
  } else if (e.getWriteConcernError() != null) {
    response.put("err", new BsonString(e.getWriteConcernError().getMessage()));
    response.put("code", new BsonInt32(e.getWriteConcernError().getCode()));
  }
  return response;
}
origin: org.mongodb/mongodb-driver-core

  @Override
  public String toString() {
    return "BulkWriteError{"
        + "index=" + index
        + ", code=" + getCode()
        + ", message='" + getMessage() + '\''
        + ", details=" + getDetails()
        + '}';
  }
}
origin: org.mongodb/mongodb-driver

static List<BulkWriteError> translateWriteErrors(final List<com.mongodb.bulk.BulkWriteError> errors) {
  List<BulkWriteError> retVal = new ArrayList<BulkWriteError>(errors.size());
  for (com.mongodb.bulk.BulkWriteError cur : errors) {
    retVal.add(new BulkWriteError(cur.getCode(), cur.getMessage(), DBObjects.toDBObject(cur.getDetails()), cur.getIndex()));
  }
  return retVal;
}
origin: org.mongodb/mongodb-driver-core

private void mergeWriteErrors(final List<BulkWriteError> newWriteErrors, final IndexMap indexMap) {
  for (BulkWriteError cur : newWriteErrors) {
    this.writeErrors.add(new BulkWriteError(cur.getCode(), cur.getMessage(), cur.getDetails(), indexMap.map(cur.getIndex())
    ));
  }
}
origin: org.mongodb/mongodb-driver-core

private BsonDocument manufactureGetLastErrorResponse(final MongoBulkWriteException e) {
  BsonDocument response = new BsonDocument();
  addBulkWriteResultToResponse(e.getWriteResult(), response);
  if (e.getWriteConcernError() != null) {
    response.putAll(e.getWriteConcernError().getDetails());
  }
  if (getLastError(e) != null) {
    response.put("err", new BsonString(getLastError(e).getMessage()));
    response.put("code", new BsonInt32(getLastError(e).getCode()));
    response.putAll(getLastError(e).getDetails());
  } else if (e.getWriteConcernError() != null) {
    response.put("err", new BsonString(e.getWriteConcernError().getMessage()));
    response.put("code", new BsonInt32(e.getWriteConcernError().getCode()));
  }
  return response;
}
com.mongodb.bulkBulkWriteErrorgetDetails

Popular methods of BulkWriteError

  • getCode
  • getIndex
    The index of the item in the bulk write operation with this error.
  • getMessage
  • <init>
    Constructs a new instance.
  • getCategory
  • toString

Popular in Java

  • Finding current android device location
  • runOnUiThread (Activity)
  • scheduleAtFixedRate (Timer)
  • getContentResolver (Context)
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • JPanel (javax.swing)
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • Option (scala)
  • Top 17 Plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now