BatchException Class

  • java.lang.Object

public class BatchException extends StorageException

Exception for when one or more sub-requests within a batch request fail. This exception is a map of the StorageExceptions to the parent objects of the sub-request. Extensions of Throwable cannot use generics, so this class uses several data structures with wildcards. Since only groups of the same request type can be batched together, the batch caller will know the intended type in context, and can safely cast the result. Please refer to the samples project for an example on how to appropriately handle batch exceptions.

Method Summary

Modifier and Type Method and Description
Map<?, StorageException> getExceptions()
Map<?, ?> getSuccessfulResponses()

Inherited Members

Method Details

getExceptions

public Map getExceptions()

getSuccessfulResponses

public Map getSuccessfulResponses()

Applies to