Exception BulkWriterException (3.15.7)

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
NameDescription
statusio.grpc.Status
messageString
documentReferenceDocumentReference
operationTypecom.google.cloud.firestore.BulkWriter.OperationType
failedAttemptsint

Methods

getDocumentReference()

public DocumentReference getDocumentReference()
Returns
TypeDescription
DocumentReference

The DocumentReference the operation was performed on.

getFailedAttempts()

public int getFailedAttempts()
Returns
TypeDescription
int

How many times this operation has been attempted unsuccessfully.

getMessage()

public String getMessage()
Returns
TypeDescription
String

The error message of the error.

Overrides

getOperationType()

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

The type of operation performed.

getStatus()

public Status getStatus()
Returns
TypeDescription
io.grpc.Status

The status code of the error.

Overrides