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:
java.io.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:
WriteConcern
, 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 MongoWriteConcernException(WriteConcernError writeConcernError, ServerAddress serverAddress)
Deprecated.Construct an instance.MongoWriteConcernException(WriteConcernError writeConcernError, WriteConcernResult writeConcernResult, ServerAddress serverAddress)
Deprecated.Construct an instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description WriteConcernError
getWriteConcernError()
Deprecated.Gets the write concern error.WriteConcernResult
getWriteResult()
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
-
-
-
-
Constructor Detail
-
MongoWriteConcernException
public MongoWriteConcernException(WriteConcernError writeConcernError, ServerAddress serverAddress)
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 Detail
-
getWriteConcernError
public WriteConcernError getWriteConcernError()
Deprecated.Gets the write concern error.- Returns:
- the write concern error, which may not be null
-
getWriteResult
public WriteConcernResult getWriteResult()
Deprecated.Gets the write result.- Returns:
- the write result
- Since:
- 3.2
-
-