Package com.mongodb

Class MongoWriteException

  • All Implemented Interfaces:
    java.io.Serializable

    @Deprecated(since="2021-05-27")
    public class MongoWriteException
    extends MongoServerException
    Deprecated.
    Usage of this API is not supported in AEM as a Cloud Service.
    An exception indicating the failure of a write operation.
    Since:
    3.0
    See Also:
    Serialized Form
    • Constructor Detail

      • MongoWriteException

        public MongoWriteException​(WriteError error,
                                   ServerAddress serverAddress)
        Deprecated.
        Construct an instance
        Parameters:
        error - the error
        serverAddress - the server address
    • Method Detail

      • getError

        public WriteError getError()
        Deprecated.
        Gets the error.
        Returns:
        the error