Package com.mongodb.internal.connection
Class MongoWriteConcernWithResponseException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.mongodb.MongoException
-
- com.mongodb.internal.connection.MongoWriteConcernWithResponseException
-
- All Implemented Interfaces:
java.io.Serializable
public class MongoWriteConcernWithResponseException extends MongoException
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.mongodb.MongoException
TRANSIENT_TRANSACTION_ERROR_LABEL, UNKNOWN_TRANSACTION_COMMIT_RESULT_LABEL
-
-
Constructor Summary
Constructors Constructor Description MongoWriteConcernWithResponseException(MongoException exception, java.lang.Object response)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MongoException
getCause()
java.lang.Object
getResponse()
-
Methods inherited from class com.mongodb.MongoException
addLabel, fromThrowable, fromThrowableNonNull, getCode, getErrorLabels, hasErrorLabel, removeLabel
-
-
-
-
Constructor Detail
-
MongoWriteConcernWithResponseException
public MongoWriteConcernWithResponseException(MongoException exception, java.lang.Object response)
-
-
Method Detail
-
getCause
public MongoException getCause()
- Overrides:
getCause
in classjava.lang.Throwable
-
getResponse
public java.lang.Object getResponse()
-
-