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 booleanequals(java.lang.Object o)Deprecated.intgetIndex()Deprecated.The index of the item in the bulk write operation with this error.inthashCode()Deprecated.java.lang.StringtoString()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:
equalsin classWriteError
-
hashCode
public int hashCode()
Deprecated.- Overrides:
hashCodein classWriteError
-
toString
public java.lang.String toString()
Deprecated.- Overrides:
toStringin classWriteError
-
-