public class BulkWriteError extends WriteError
| Constructor and Description |
|---|
BulkWriteError(int code,
String message,
BsonDocument details,
int index)
Constructs a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
int |
getIndex()
The index of the item in the bulk write operation with this error.
|
int |
hashCode() |
String |
toString() |
getCategory, getCode, getDetails, getMessagepublic BulkWriteError(int code,
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(Object o)
equals in class WriteErrorpublic int hashCode()
hashCode in class WriteErrorpublic String toString()
toString in class WriteError