Class BulkRequestException

All Implemented Interfaces:
Serializable

public class BulkRequestException extends SDKException
Thrown when a bulk request, for example InventoryApi.createBulk or MeasurementApi.createBulk, fails for one of its elements.

For a bulk create of managed objects that failed while writing, part of the request may have been created. In this case getFragmentType() names the fragment that every created managed object carries, so that they can be found with InventoryFilter.byFragmentType(fragmentType). For measurements, getFragmentType() is always null.

See Also:
  • Constructor Details

  • Method Details

    • getFailedIndex

      public Integer getFailedIndex()
      Returns:
      the position of the failed element in the request, counted from 0
    • getFragmentType

      public String getFragmentType()
      Returns:
      the batch marker fragment of the managed objects created by the request, or null if nothing was created