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

  • Running tasks concurrently on multiple threads
  • getContentResolver (Context)
  • onCreateOptionsMenu (Activity)
  • getExternalFilesDir (Context)
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • Top plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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