Package com.mongodb
Class MongoWriteConcernException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.mongodb.MongoException
com.mongodb.MongoServerException
com.mongodb.MongoWriteConcernException
- All Implemented Interfaces:
Serializable
@Deprecated(since="2021-05-27")
public class MongoWriteConcernException
extends MongoServerException
Deprecated.
Usage of this API is not supported in AEM as a Cloud Service.
An exception indicating a failure to apply the write concern to the requested write operation
- Since:
- 3.0
- See Also:
-
Field Summary
Fields inherited from class com.mongodb.MongoException
TRANSIENT_TRANSACTION_ERROR_LABEL, UNKNOWN_TRANSACTION_COMMIT_RESULT_LABEL
-
Constructor Summary
ConstructorsConstructorDescriptionMongoWriteConcernException
(WriteConcernError writeConcernError, ServerAddress serverAddress) Deprecated.Construct an instance.MongoWriteConcernException
(WriteConcernError writeConcernError, WriteConcernResult writeConcernResult, ServerAddress serverAddress) Deprecated.Construct an instance. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Gets the write concern error.Deprecated.Gets the write result.Methods inherited from class com.mongodb.MongoServerException
getServerAddress
Methods inherited from class com.mongodb.MongoException
addLabel, fromThrowable, fromThrowableNonNull, getCode, getErrorLabels, hasErrorLabel, removeLabel
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
MongoWriteConcernException
Deprecated.Construct an instance.- Parameters:
writeConcernError
- the non-null write concern errorserverAddress
- the non-null server address
-
MongoWriteConcernException
public MongoWriteConcernException(WriteConcernError writeConcernError, @Nullable WriteConcernResult writeConcernResult, ServerAddress serverAddress) Deprecated.Construct an instance.- Parameters:
writeConcernError
- the non-null write concern errorwriteConcernResult
- the write resultserverAddress
- the non-null server address- Since:
- 3.2
-
-
Method Details
-
getWriteConcernError
Deprecated.Gets the write concern error.- Returns:
- the write concern error, which may not be null
-
getWriteResult
Deprecated.Gets the write result.- Returns:
- the write result
- Since:
- 3.2
-