Class MultiMutationException

All Implemented Interfaces:
Serializable

@Committed
@Public
public class MultiMutationException
extends SubDocumentException
Exception denoting that at least one error occurred when applying multiple mutations using the sub-document API (a MutateInBuilder.execute() with at least two mutations). None of the mutations were applied.
Since:
2.2
Author:
Simon Baslé
See Also:
Serialized Form
  • Constructor Details

  • Method Details

    • firstFailureIndex

      public int firstFailureIndex()
      Returns:
      the zero-based index of the first mutation spec that caused the multi mutation to fail.
    • firstFailureStatus

      public ResponseStatus firstFailureStatus()
      Returns:
      the error status for the first mutation spec that caused the multi mutation to fail.
    • originalSpec

      public List<MutationSpec> originalSpec()
      Returns:
      the list of MutationSpec that was originally passed to the multi-mutation operation.
    • firstFailureSpec

      public MutationSpec firstFailureSpec()
      Returns:
      the mutation spec in originalSpec() at index firstFailureIndex().