public class BulkWriteError extends WriteError
Constructor and Description |
---|
BulkWriteError(int code,
java.lang.String message,
BsonDocument details,
int index)
Constructs a new instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
int |
getIndex()
The index of the item in the bulk write operation with this error.
|
int |
hashCode() |
java.lang.String |
toString() |
getCategory, getCode, getDetails, getMessage
public BulkWriteError(int code, java.lang.String message, BsonDocument details, int index)
code
- the error codemessage
- the error messagedetails
- details about the errorindex
- the index of the item in the bulk write operation that had this errorpublic int getIndex()
public boolean equals(java.lang.Object o)
equals
in class WriteError
public int hashCode()
hashCode
in class WriteError
public java.lang.String toString()
toString
in class WriteError