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