public class WriteError
extends java.lang.Object
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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
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