Package com.mongodb

Class 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:
  • Constructor Details

    • MongoWriteConcernException

      public MongoWriteConcernException(WriteConcernError writeConcernError, ServerAddress serverAddress)
      Deprecated.
      Construct an instance.
      Parameters:
      writeConcernError - the non-null write concern error
      serverAddress - 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 error
      writeConcernResult - the write result
      serverAddress - the non-null server address
      Since:
      3.2
  • Method Details

    • 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