public class WriteError extends Object
Constructor and Description |
---|
WriteError(int code,
String message,
BsonDocument details)
Constructs a new instance.
|
WriteError(WriteError writeError)
Construct an instance that is a shallow copy of the given instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
ErrorCategory |
getCategory()
Gets the category of this error.
|
int |
getCode()
Gets the code associated with this error.
|
BsonDocument |
getDetails()
Gets the details associated with this error.
|
String |
getMessage()
Gets the message associated with this error.
|
int |
hashCode() |
String |
toString() |
public WriteError(int code, String message, BsonDocument details)
code
- the error codemessage
- the error messagedetails
- details about the errorpublic WriteError(WriteError writeError)
writeError
- the write error to copypublic ErrorCategory getCategory()
public int getCode()
public String getMessage()
public BsonDocument getDetails()