public class WriteError
extends java.lang.Object
| 构造器和说明 |
|---|
WriteError(int code,
java.lang.String message,
BsonDocument details)
Constructs a new instance.
|
WriteError(WriteError writeError)
Construct an instance that is a shallow copy of the given instance.
|
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
equals(java.lang.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.
|
java.lang.String |
getMessage()
Gets the message associated with this error.
|
int |
hashCode() |
java.lang.String |
toString() |
public WriteError(int code,
java.lang.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 java.lang.String getMessage()
public BsonDocument getDetails()
public boolean equals(java.lang.Object o)
equals 在类中 java.lang.Objectpublic int hashCode()
hashCode 在类中 java.lang.Objectpublic java.lang.String toString()
toString 在类中 java.lang.Object