Exception BulkWriterException (3.21.1)

public final class BulkWriterException extends FirestoreException

The error thrown when a BulkWriter operation fails.

Constructors

BulkWriterException(Status status, String message, DocumentReference documentReference, BulkWriter.OperationType operationType, int failedAttempts)

public BulkWriterException(Status status, String message, DocumentReference documentReference, BulkWriter.OperationType operationType, int failedAttempts)
Parameters
Name Description
status io.grpc.Status
message String
documentReference DocumentReference
operationType com.google.cloud.firestore.BulkWriter.OperationType
failedAttempts int

Methods

getDocumentReference()

public DocumentReference getDocumentReference()
Returns
Type Description
DocumentReference

The DocumentReference the operation was performed on.

getFailedAttempts()

public int getFailedAttempts()
Returns
Type Description
int

How many times this operation has been attempted unsuccessfully.

getMessage()

public String getMessage()
Returns
Type Description
String

The error message of the error.

Overrides

getOperationType()

public BulkWriter.OperationType getOperationType()
Returns
Type Description
com.google.cloud.firestore.BulkWriter.OperationType

The type of operation performed.

getStatus()

public Status getStatus()
Returns
Type Description
io.grpc.Status

The status code of the error.

Overrides