Package com.mongodb.bulk
Class BulkWriteError
- java.lang.Object
-
- com.mongodb.WriteError
-
- com.mongodb.bulk.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 Summary
Constructors Constructor Description BulkWriteError(int code, java.lang.String message, BsonDocument details, int index)
Deprecated.Constructs a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
Deprecated.int
getIndex()
Deprecated.The index of the item in the bulk write operation with this error.int
hashCode()
Deprecated.java.lang.String
toString()
Deprecated.-
Methods inherited from class com.mongodb.WriteError
getCategory, getCode, getDetails, getMessage
-
-
-
-
Constructor Detail
-
BulkWriteError
public BulkWriteError(int code, java.lang.String message, BsonDocument details, int index)
Deprecated.Constructs a new instance.- Parameters:
code
- the error codemessage
- the error messagedetails
- details about the errorindex
- 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 classWriteError
-
hashCode
public int hashCode()
Deprecated.- Overrides:
hashCode
in classWriteError
-
toString
public java.lang.String toString()
Deprecated.- Overrides:
toString
in classWriteError
-
-