Package com.mongodb
Class BulkWriteError
- java.lang.Object
 - 
- com.mongodb.BulkWriteError
 
 
- 
@Deprecated(since="2021-05-27") public class BulkWriteError extends java.lang.ObjectDeprecated.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, java.lang.String message, DBObject 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.intgetCode()Deprecated.Gets the code associated with this error.DBObjectgetDetails()Deprecated.Gets the details associated with this error.intgetIndex()Deprecated.The index of the item in the bulk write operation with this error.java.lang.StringgetMessage()Deprecated.Gets the message associated with this error.inthashCode()Deprecated.java.lang.StringtoString()Deprecated. 
 - 
 
- 
- 
Constructor Detail
- 
BulkWriteError
public BulkWriteError(int code, java.lang.String message, DBObject 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
- 
getCode
public int getCode()
Deprecated.Gets the code associated with this error.- Returns:
 - the code
 
 
- 
getMessage
public java.lang.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(java.lang.Object o)
Deprecated.- Overrides:
 equalsin classjava.lang.Object
 
- 
hashCode
public int hashCode()
Deprecated.- Overrides:
 hashCodein classjava.lang.Object
 
- 
toString
public java.lang.String toString()
Deprecated.- Overrides:
 toStringin classjava.lang.Object
 
 - 
 
 -