Package com.mongodb

Class BulkWriteError

java.lang.Object
com.mongodb.BulkWriteError

@Deprecated(since="2021-05-27") public class BulkWriteError extends Object
Deprecated.
Usage of this API is not supported in AEM as a Cloud Service.
Represents an error for an item included in a bulk write operation, e.g. a duplicate key error
Since:
2.12
  • Constructor Summary

    Constructors
    Constructor
    Description
    BulkWriteError(int code, String message, DBObject details, int index)
    Deprecated.
    Constructs a new instance.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Deprecated.
     
    int
    Deprecated.
    Gets the code associated with this error.
    Deprecated.
    Gets the details associated with this error.
    int
    Deprecated.
    The index of the item in the bulk write operation with this error.
    Deprecated.
    Gets the message associated with this error.
    int
    Deprecated.
     
    Deprecated.
     

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • BulkWriteError

      public BulkWriteError(int code, String message, DBObject details, int index)
      Deprecated.
      Constructs a new instance.
      Parameters:
      code - the error code
      message - the error message
      details - details about the error
      index - the index of the item in the bulk write operation that had this error
  • Method Details

    • getCode

      public int getCode()
      Deprecated.
      Gets the code associated with this error.
      Returns:
      the code
    • getMessage

      public String getMessage()
      Deprecated.
      Gets the message associated with this error.
      Returns:
      the message
    • getDetails

      public DBObject getDetails()
      Deprecated.
      Gets the details associated with this error. This document will not be null, but may be empty.
      Returns:
      the details
    • getIndex

      public int getIndex()
      Deprecated.
      The index of the item in the bulk write operation with this error.
      Returns:
      the index
    • equals

      public boolean equals(Object o)
      Deprecated.
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Deprecated.
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Deprecated.
      Overrides:
      toString in class Object