Class BulkWriteError


  • @Deprecated(since="2021-05-27")
    public class BulkWriteError
    extends WriteError
    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:
    3.0
    • Constructor Detail

      • BulkWriteError

        public BulkWriteError​(int code,
                              java.lang.String message,
                              BsonDocument 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 Detail

      • 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​(java.lang.Object o)
        Deprecated.
        Overrides:
        equals in class WriteError
      • toString

        public java.lang.String toString()
        Deprecated.
        Overrides:
        toString in class WriteError