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