public class WriteConcernError
extends java.lang.Object
Constructor and Description |
---|
WriteConcernError(int code,
java.lang.String message,
BsonDocument details)
Deprecated.
|
WriteConcernError(int code,
java.lang.String codeName,
java.lang.String message,
BsonDocument details)
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.
|
java.lang.String |
getCodeName()
Gets the name associated with the error code.
|
BsonDocument |
getDetails()
Gets the details associated with this error.
|
java.lang.String |
getMessage()
Gets the message associated with this error.
|
int |
hashCode() |
java.lang.String |
toString() |
public WriteConcernError(int code, java.lang.String codeName, java.lang.String message, BsonDocument details)
code
- the error codecodeName
- the error code namemessage
- the error messagedetails
- any details@Deprecated public WriteConcernError(int code, java.lang.String message, BsonDocument details)
code
- the error codemessage
- the error messagedetails
- any detailspublic int getCode()
public java.lang.String getCodeName()
public java.lang.String getMessage()
public BsonDocument getDetails()
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
Copyright © 2010 - 2020 Adobe. All Rights Reserved