Enum ErrorMap.ErrorAttribute

    • Enum Constant Detail

      • SUCCESS

        public static final ErrorMap.ErrorAttribute SUCCESS
        The operation was successful for those situations where the error code is indicating successful (i.e. subdoc operations carried out on a deleted document)
      • ITEM_ONLY

        public static final ErrorMap.ErrorAttribute ITEM_ONLY
        This attribute means that the error is related to a constraint failure regarding the item itself, i.e. the item does not exist, already exists, or its current value makes the current operation impossible. Retrying the operation when the item's value or status has changed may succeed.

        public static final ErrorMap.ErrorAttribute INVALID_INPUT
        This attribute means that a user's input was invalid because it violates the semantics of the operation, or exceeds some predefined limit.

        public static final ErrorMap.ErrorAttribute FETCH_CONFIG
        The client's cluster map may be outdated and requires updating. The client should obtain a newer configuration.

        public static final ErrorMap.ErrorAttribute CONN_STATE_INVALIDATED
        The current connection is no longer valid. The client must reconnect to the server. Note that the presence of other attributes may indicate an alternate remedy to fixing the connection without a disconnect, but without special remedial action a disconnect is needed.
      • AUTH

        public static final ErrorMap.ErrorAttribute AUTH
        The operation failed because the client failed to authenticate or is not authorized to perform this operation. Note that this error in itself does not mean the connection is invalid, unless conn-state-invalidated is also present.

        public static final ErrorMap.ErrorAttribute SPECIAL_HANDLING
        This error code must be handled specially. If it is not handled, the connection must be dropped.
      • SUPPORT

        public static final ErrorMap.ErrorAttribute SUPPORT
        The operation is not supported, possibly because the of server version, bucket type, or current user.
      • TEMP

        public static final ErrorMap.ErrorAttribute TEMP
        This error is transient. Note that this does not mean the error is retriable.

        public static final ErrorMap.ErrorAttribute RETRY_LATER
        The operation may be retried after some time.

        public static final ErrorMap.ErrorAttribute ITEM_LOCKED
        This attribute specifies that the requested item is currently locked.

        public static final ErrorMap.ErrorAttribute ITEM_DELETED
        This attribute means that the error is related to operating on a soft-deleted document.
    • Method Detail

      • values

        public static ErrorMap.ErrorAttribute[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (ErrorMap.ErrorAttribute c : ErrorMap.ErrorAttribute.values())
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ErrorMap.ErrorAttribute valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        name - the name of the enum constant to be returned.
        the enum constant with the specified name
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null