public class WriteConcernError extends Object
Constructor | Description |
---|---|
WriteConcernError(int code,
String message,
BsonDocument details) |
Constructs a new instance.
|
Modifier and Type | Method | Description |
---|---|---|
boolean |
equals(Object o) |
|
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 WriteConcernError(int code, String message, BsonDocument details)
code
- the error codemessage
- the error messagedetails
- any detailspublic int getCode()
public String getMessage()
public BsonDocument getDetails()