Package com.mongodb

Class WriteConcernError


  • @Deprecated(since="2021-05-27")
    public class WriteConcernError
    extends java.lang.Object
    Deprecated.
    Usage of this API is not supported in AEM as a Cloud Service.
    An error representing a failure by the server to apply the requested write concern to the bulk operation.
    Since:
    2.12
    • Constructor Summary

      Constructors 
      Constructor Description
      WriteConcernError​(int code, java.lang.String message, DBObject details)
      Deprecated.
      Constructs a new instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)
      Deprecated.
       
      int getCode()
      Deprecated.
      Gets the code associated with this error.
      DBObject getDetails()
      Deprecated.
      Gets the details associated with this error.
      java.lang.String getMessage()
      Deprecated.
      Gets the message associated with this error.
      int hashCode()
      Deprecated.
       
      java.lang.String toString()
      Deprecated.
       
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • WriteConcernError

        public WriteConcernError​(int code,
                                 java.lang.String message,
                                 DBObject details)
        Deprecated.
        Constructs a new instance.
        Parameters:
        code - the error code
        message - the error message
        details - any details
    • Method Detail

      • getCode

        public int getCode()
        Deprecated.
        Gets the code associated with this error.
        Returns:
        the code
      • getMessage

        public java.lang.String getMessage()
        Deprecated.
        Gets the message associated with this error.
        Returns:
        the message
      • getDetails

        public DBObject getDetails()
        Deprecated.
        Gets the details associated with this error. This document will not be null, but may be empty.
        Returns:
        the details
      • equals

        public boolean equals​(java.lang.Object o)
        Deprecated.
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Deprecated.
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Deprecated.
        Overrides:
        toString in class java.lang.Object