public class BulkWriteError
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private int |
code |
private DBObject |
details |
private int |
index |
private java.lang.String |
message |
Constructor and Description |
---|
BulkWriteError(int code,
java.lang.String message,
DBObject details,
int index)
Constructs a new instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
int |
getCode()
Gets the code associated with this error.
|
DBObject |
getDetails()
Gets the details associated with this error.
|
int |
getIndex()
The index of the item in the bulk write operation with this error.
|
java.lang.String |
getMessage()
Gets the message associated with this error.
|
int |
hashCode() |
java.lang.String |
toString() |
private final int index
private final int code
private final java.lang.String message
private final DBObject details
public BulkWriteError(int code, java.lang.String message, DBObject 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 getCode()
public java.lang.String getMessage()
public DBObject getDetails()
public int getIndex()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object